Bug : les %20 de l'adresse restent dans le chemin.
This commit is contained in:
parent
8ef62564a0
commit
6620aed357
|
@ -15,6 +15,7 @@ class CMS {
|
|||
global $config_url_base;
|
||||
// TODO : Pas propre !
|
||||
$base = "/" . preg_replace("/^https?:\/\/[^\/]*\//", "", $config_url_base, 1);
|
||||
$uri = urldecode($uri);
|
||||
if (strpos($uri, $base) == 0) {
|
||||
return '/' . substr($uri, strlen($base));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user