Commit 86c4620c authored by ntome's avatar ntome Committed by Romain Bignon

[banquepopulaire] fix login cookies in javascript with spaces

There used to be "COTE = 'xxx'", now it's "COTE='xxx'", update regexp.
This site is really pathetic.

Closes: 41079@sibi
parent 36db0668
......@@ -226,7 +226,7 @@ class RedirectPage(LoggedPage, MyHTMLPage):
redirect_url = m.group(1)
for line in script.text.split('\r\n'):
m = re.match("^var (\w+) = [^']*'([^']*)'.*", line)
m = re.match("^var (\w+) ?= ?[^']*'([^']*)'.*", line)
if m:
args[m.group(1)] = m.group(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment