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;
|
global $config_url_base;
|
||||||
// TODO : Pas propre !
|
// TODO : Pas propre !
|
||||||
$base = "/" . preg_replace("/^https?:\/\/[^\/]*\//", "", $config_url_base, 1);
|
$base = "/" . preg_replace("/^https?:\/\/[^\/]*\//", "", $config_url_base, 1);
|
||||||
|
$uri = urldecode($uri);
|
||||||
if (strpos($uri, $base) == 0) {
|
if (strpos($uri, $base) == 0) {
|
||||||
return '/' . substr($uri, strlen($base));
|
return '/' . substr($uri, strlen($base));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user