From 9bc56569b4c4c6f9e5ef3b3709ecaa4801a30741 Mon Sep 17 00:00:00 2001 From: desaster Date: Wed, 18 Nov 2009 21:28:41 +0000 Subject: [PATCH] Have wget assume urls should start with http:// git-svn-id: https://kippo.googlecode.com/svn/trunk@30 951d7100-d841-11de-b865-b3884708a8e2 --- commands/wget.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/wget.py b/commands/wget.py index 516892f..8c9efaa 100644 --- a/commands/wget.py +++ b/commands/wget.py @@ -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')