Subversion Repositories oidplus

Rev

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

Rev 370 Rev 386
Line 147... Line 147...
147
        // Works with JavaScript and PHP
147
        // Works with JavaScript and PHP
148
        $cont = preg_replace('@/\\*.+\\*/@ismU', '', $cont);
148
        $cont = preg_replace('@/\\*.+\\*/@ismU', '', $cont);
149
        $cont = str_replace('\\"', chr(1), $cont);
149
        $cont = str_replace('\\"', chr(1), $cont);
150
        $cont = str_replace("\\'", chr(2), $cont);
150
        $cont = str_replace("\\'", chr(2), $cont);
151
        $cont = str_replace("\\\\", "\\", $cont);
151
        $cont = str_replace("\\\\", "\\", $cont);
-
 
152
        $m = array();
152
        preg_match_all('@[^_A-Za-z0-9]_L\\(.*(["\'])(.+)\\1@ismU', $cont, $m);
153
        preg_match_all('@[^_A-Za-z0-9]_L\\(.*(["\'])(.+)\\1@ismU', $cont, $m);
153
        foreach ($m[2] as &$x) {
154
        foreach ($m[2] as &$x) {
154
                $x = str_replace(chr(1), '"', $x);
155
                $x = str_replace(chr(1), '"', $x);
155
                $x = str_replace(chr(2), "'", $x);
156
                $x = str_replace(chr(2), "'", $x);
156
        }
157
        }