[Secure-testing-commits] r9005 - bin
nion at alioth.debian.org
nion at alioth.debian.org
Fri Jun 6 18:08:30 UTC 2008
Author: nion
Date: 2008-06-06 18:08:29 +0000 (Fri, 06 Jun 2008)
New Revision: 9005
Modified:
bin/report-vuln
Log:
fix http replacement, todo: seperate proxy processing from http function
Modified: bin/report-vuln
===================================================================
--- bin/report-vuln 2008-06-06 15:21:20 UTC (rev 9004)
+++ bin/report-vuln 2008-06-06 18:08:29 UTC (rev 9005)
@@ -26,7 +26,8 @@
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'
More information about the Secure-testing-commits
mailing list