From 50973e41bded6ea3fb4398761b5ee0f47e002c38 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sun, 30 Apr 2006 21:12:32 +0000 Subject: [PATCH] bug #246 merci Cedric ! --- ecrire/inc/utils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index 990bfdb3cc..1530b2d7bb 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -713,6 +713,9 @@ function url_de_base() { # note : HTTP_HOST contient le :port si necessaire $myself = $http.'://'.$_SERVER['HTTP_HOST'].$REQUEST_URI; + # supprimer la chaine de GET + $myself = preg_replace(',\?.*$,','', $myself); + # supprimer n sous-repertoires $supprime_preg = '/+'; for ($i=0; $i<$GLOBALS['profondeur_url']; $i++) -- GitLab