2
0
mirror of https://github.com/lanjelot/patator synced 2024-11-10 01:13:31 +00:00

added url encoding

This commit is contained in:
lanjelot 2012-10-17 15:24:47 +11:00
parent ed322c0ab2
commit 5ef1281611

View File

@ -610,12 +610,12 @@ from collections import defaultdict
try:
# python3+
from queue import Queue, Empty, Full
from urllib.parse import quote, urlencode, urlparse, urlunparse, parse_qsl
from urllib.parse import quote, urlencode, urlparse, urlunparse, parse_qsl, quote_plus
from io import StringIO
except ImportError:
# python2.6+
from Queue import Queue, Empty, Full
from urllib import quote, urlencode
from urllib import quote, urlencode, quote_plus
from urlparse import urlparse, urlunparse, parse_qsl
from cStringIO import StringIO
@ -707,6 +707,7 @@ class Controller:
'b64': (b64encode, 'encode in base64'),
'md5': (md5hex, 'hash in md5'),
'sha1': (sha1hex, 'hash in sha1'),
'url': (quote_plus, 'url encode'),
}
def expand_key(self, arg):