Minor update

This commit is contained in:
Miroslav Stampar 2012-10-19 11:03:54 +02:00
parent d65d9e25cd
commit 987f167e12

View File

@ -267,6 +267,6 @@ def processResponse(page, responseHeaders):
match = re.search(regex, page) match = re.search(regex, page)
if match and PLACE.POST in conf.parameters: if match and PLACE.POST in conf.parameters:
name, value = match.groups() name, value = match.groups()
conf.parameters[PLACE.POST] = re.sub("(%s=)[^&]+" % name, r"\g<1>%s" % value, conf.parameters[PLACE.POST]) conf.parameters[PLACE.POST] = re.sub("(?i)(%s=)[^&]+" % name, r"\g<1>%s" % value, conf.parameters[PLACE.POST])
if PLACE.POST in conf.paramDict and name in conf.paramDict[PLACE.POST]: if PLACE.POST in conf.paramDict and name in conf.paramDict[PLACE.POST]:
conf.paramDict[PLACE.POST][name] = value conf.paramDict[PLACE.POST][name] = value