Fix Ciril plugin for the new release
This commit is contained in:
parent
009bafa773
commit
bd7f98a776
|
@ -28,13 +28,13 @@ class CirilSiteAuthentication(SiteAuthentication):
|
||||||
success = False
|
success = False
|
||||||
return_content = redirect(self.host.get_return_url())
|
return_content = redirect(self.host.get_return_url())
|
||||||
|
|
||||||
regexp = re.compile(
|
regexp = re.compile("""window.open\('/net_rh/accueil.php\?(.+?)'\,'_blank'""",
|
||||||
"""javascript\:window\.open\('(/net_rh/accueil.php\?.*?)', '_blank'\)""",
|
re.DOTALL | re.IGNORECASE)
|
||||||
re.DOTALL | re.IGNORECASE)
|
m = regexp.search(data)
|
||||||
match = regexp.findall(data)
|
if m:
|
||||||
if match:
|
|
||||||
success = True
|
success = True
|
||||||
return_content = redirect(match[0])
|
link = "/net_rh/accueil.php?%s" % m.group(1)
|
||||||
|
return_content = redirect(link)
|
||||||
|
|
||||||
return success, return_content
|
return success, return_content
|
||||||
|
|
||||||
|
|
Reference in New Issue