From: Michael Tremer Date: Sun, 21 Jun 2009 14:26:27 +0000 (+0200) Subject: Source download handler doesn't send 403 if user agent doesn't match. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=903d1d1a38654356c5f35c27392531c4164cb1c0;p=ipfire.org.git Source download handler doesn't send 403 if user agent doesn't match. --- diff --git a/source/dlhandler.py b/source/dlhandler.py index 3e7cec80..6b135fbb 100644 --- a/source/dlhandler.py +++ b/source/dlhandler.py @@ -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()