Fix: corruption url

This commit is contained in:
Laurent Destailleur 2007-09-17 21:59:01 +00:00
parent a9edcd57e8
commit 966acbf2fb

View File

@ -2676,9 +2676,10 @@ function clean_url($url)
{ {
//Todo: voir plus tard pour les url avec accent //Todo: voir plus tard pour les url avec accent
$url = unaccent(trim($url)); $url = unaccent(trim($url));
$url = strtolower($url); //$url = strtolower($url); // Une url est sensible a la casse http://sever/Dir/Page.html != http://server/dir/page.html (sauf sur le nom de serveur)
//Todo: voir pour améliorer //Todo: voir pour améliorer
$url = ereg_replace('^http://','',$url); $url = ereg_replace('^http:[\\\/]+','',$url);
//print "url=".$url;
return $url; return $url;
} }