Projet

Général

Profil

« Précédent | Suivant » 

Révision bd7f98a7

Ajouté par Jérôme Schneider il y a plus de 12 ans

  • ID bd7f98a776fa66154b29face4c4805fa6d53df1a

Fix Ciril plugin for the new release

Voir les différences:

larpe/plugins/site_authentication/ciril_net_rh.py
28 28
            success = False
29 29
            return_content = redirect(self.host.get_return_url())
30 30

  
31
        regexp = re.compile(
32
            """javascript\:window\.open\('(/net_rh/accueil.php\?.*?)', '_blank'\)""",
33
            re.DOTALL | re.IGNORECASE)
34
        match = regexp.findall(data)
35
        if match:
31
        regexp = re.compile("""window.open\('/net_rh/accueil.php\?(.+?)'\,'_blank'""",
32
                re.DOTALL | re.IGNORECASE)
33
        m = regexp.search(data)
34
        if m:
36 35
            success = True
37
            return_content = redirect(match[0])
36
            link = "/net_rh/accueil.php?%s" % m.group(1)
37
            return_content = redirect(link)
38 38

  
39 39
        return success, return_content
40 40

  

Formats disponibles : Unified diff