From: cash Date: Wed, 7 Dec 2011 03:05:48 +0000 (-0500) Subject: Fixes #4173 removed use of \w since it is locale sensitive X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=24786872cdee97470016998ff170c99b00054167;p=lorea%2Felgg.git Fixes #4173 removed use of \w since it is locale sensitive --- diff --git a/engine/lib/output.php b/engine/lib/output.php index 60bcc72cd..989eca60e 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -306,6 +306,9 @@ function elgg_get_friendly_title($title) { } //$title = iconv('UTF-8', 'ASCII//TRANSLIT', $title); + + // use A-Za-z0-9_ instead of \w because \w is locale sensitive + $title = preg_replace("/[^A-Za-z0-9_ ]/", "", $title); $title = preg_replace("/[^\w ]/", "", $title); $title = str_replace(" ", "-", $title); $title = str_replace("--", "-", $title);