Subversion Repositories oidplus

Rev

Rev 366 | Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 366 Rev 386
Line 98... Line 98...
98
        // Works with JavaScript and PHP
98
        // Works with JavaScript and PHP
99
        $cont = preg_replace('@/\\*.+\\*/@ismU', '', $cont);
99
        $cont = preg_replace('@/\\*.+\\*/@ismU', '', $cont);
100
        $cont = str_replace('\\"', chr(1), $cont);
100
        $cont = str_replace('\\"', chr(1), $cont);
101
        $cont = str_replace("\\'", chr(2), $cont);
101
        $cont = str_replace("\\'", chr(2), $cont);
102
        $cont = str_replace("\\\\", "\\", $cont);
102
        $cont = str_replace("\\\\", "\\", $cont);
-
 
103
        $m = array();
103
        preg_match_all('@[^_A-Za-z0-9]_L\\(.*(["\'])(.+)\\1@ismU', $cont, $m);
104
        preg_match_all('@[^_A-Za-z0-9]_L\\(.*(["\'])(.+)\\1@ismU', $cont, $m);
104
        foreach ($m[2] as &$x) {
105
        foreach ($m[2] as &$x) {
105
                $x = str_replace(chr(1), '"', $x);
106
                $x = str_replace(chr(1), '"', $x);
106
                $x = str_replace(chr(2), "'", $x);
107
                $x = str_replace(chr(2), "'", $x);
107
        }
108
        }