Minor update for an Issue #264

This commit is contained in:
Miroslav Stampar 2012-11-28 11:45:33 +01:00
parent cff0c59630
commit e2d8b53e97

View File

@ -1352,7 +1352,7 @@ def __cleanupOptions():
setOptimize() setOptimize()
if conf.data: if conf.data:
conf.data = re.sub(INJECT_HERE_MARK, CUSTOM_INJECTION_MARK_CHAR, conf.data, re.I) conf.data = re.sub(INJECT_HERE_MARK.replace(" ", r"[^A-Za-z]*"), CUSTOM_INJECTION_MARK_CHAR, conf.data, re.I)
if re.search(r'%[0-9a-f]{2}', conf.data, re.I): if re.search(r'%[0-9a-f]{2}', conf.data, re.I):
original = conf.data original = conf.data
@ -1363,7 +1363,7 @@ def __cleanupOptions():
conf.data = urldecode(conf.data) conf.data = urldecode(conf.data)
if conf.url: if conf.url:
conf.url = re.sub(INJECT_HERE_MARK, CUSTOM_INJECTION_MARK_CHAR, conf.url, re.I) conf.url = re.sub(INJECT_HERE_MARK.replace(" ", r"[^A-Za-z]*"), CUSTOM_INJECTION_MARK_CHAR, conf.url, re.I)
if conf.os: if conf.os:
conf.os = conf.os.capitalize() conf.os = conf.os.capitalize()