Project

General

Profile

« Previous | Next » 

Revision 19

Added by Manuela over 6 years ago

output_filter/filters/filterRelUrl little typo fixed

View differences:

filterRelUrl.php
18 18
                '/((?:href|src|action)\s*=\s*")([^\?\"]+?)/isU',
19 19
                function ($aMatches) use ($sAppUrl, $sAppPath, $sAppRel) {
20 20
                    $aMatches[2] = str_replace('\\', '/', $aMatches[2]);
21
                    if ($aMatches[2][0] ='/') { $aMatches[2] = rtrim($sAppUrl, '/').$aMatches[2]; }
21
                    if ($aMatches[2][0] =='/') { $aMatches[2] = rtrim($sAppUrl, '/').$aMatches[2]; }
22 22
                    $aMatches[2] = preg_replace('/^'.preg_quote($sAppUrl, '/').'/is', '', $aMatches[2]);
23 23
                    $aMatches[2] = preg_replace('/(\.+\/)|(\/+)/', '/', $aMatches[2]);
24 24
                    if (!is_readable($sAppPath.$aMatches[2])) {

Also available in: Unified diff