Have wget assume urls should start with http://

git-svn-id: https://kippo.googlecode.com/svn/trunk@30 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2009-11-18 21:28:41 +00:00
parent 197322b6c4
commit 9bc56569b4

View File

@@ -38,6 +38,10 @@ class command_wget(HoneyPotCommand):
if arg.startswith('-'):
continue
url = arg.strip()
break
if not url.startswith('http://'):
url = 'http://%s' % url
if not url:
self.writeln('wget: missing URL')