summaryrefslogtreecommitdiffstats
path: root/bin/report-vuln
diff options
context:
space:
mode:
authorNico Golde <nion@debian.org>2008-06-06 18:08:29 +0000
committerNico Golde <nion@debian.org>2008-06-06 18:08:29 +0000
commit6394ffc54216509cb905090be860b46c5059ac46 (patch)
treedb46cdd7419b1bb829da2ee470462c361c2b7979 /bin/report-vuln
parent1f0606b7a24e3045bd2c790f4531cec48352e117 (diff)
fix http replacement, todo: seperate proxy processing from http function
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@9005 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/report-vuln')
-rwxr-xr-xbin/report-vuln3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/report-vuln b/bin/report-vuln
index 75061e355e..08d5e0a7d9 100755
--- a/bin/report-vuln
+++ b/bin/report-vuln
@@ -26,7 +26,8 @@ def gen_index(ids):
def do_httpconnect(id):
proxy = os.getenv('http_proxy')
if proxy:
- proxy = proxy.lstrip('http://')
+ if proxy.lower().startswith('http://'):
+ proxy = proxy.replace('http://', '')
url = '/cgi-bin/cvename.cgi?name=' + id
host = 'cve.mitre.org'

© 2014-2024 Faster IT GmbH | imprint | privacy policy