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
commit0f94db984c69429cd9c37978cfbf4f5158950801 (patch)
tree51c770ddc1181e8d59ec1c9442bd17aaa66f321c /bin/report-vuln
parentd1092425514a2f8f3f7c59fe06af0d5e6869368a (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