@@ 917-919 (lines=3) @@ | ||
914 | $suf = $this->config['friendly_url_suffix']; |
|
915 | $pre = preg_quote($pre, '/'); |
|
916 | $suf = preg_quote($suf, '/'); |
|
917 | if ($pre && preg_match('@^' . $pre . '(.*)$@', $q, $_)) { |
|
918 | $q = $_[1]; |
|
919 | } |
|
920 | if ($suf && preg_match('@(.*)' . $suf . '$@', $q, $_)) { |
|
921 | $q = $_[1]; |
|
922 | } |
|
@@ 920-922 (lines=3) @@ | ||
917 | if ($pre && preg_match('@^' . $pre . '(.*)$@', $q, $_)) { |
|
918 | $q = $_[1]; |
|
919 | } |
|
920 | if ($suf && preg_match('@(.*)' . $suf . '$@', $q, $_)) { |
|
921 | $q = $_[1]; |
|
922 | } |
|
923 | ||
924 | /* First remove any / before or after */ |
|
925 | $q = trim($q, '/'); |