]> git.ipfire.org Git - ipfire.org.git/commitdiff
Source download handler doesn't send 403 if user agent doesn't match.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Jun 2009 14:26:27 +0000 (16:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Jun 2009 14:26:27 +0000 (16:26 +0200)
source/dlhandler.py

index 3e7cec80f9f8b2e671e837c1c438a29e70ea6024..6b135fbb24987c07c8555ad2f48e6737163ca4e3 100644 (file)
@@ -160,9 +160,6 @@ def main():
        file = cgi.FieldStorage().getfirst("file")
        path = cgi.FieldStorage().getfirst("path")
 
-       if not os.environ["HTTP_USER_AGENT"].startswith("IPFireSourceGrabber"):
-               give_403()
-
        if not file:
                give_302()