diff options
author | cash <cash.costello@gmail.com> | 2011-12-08 18:24:29 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-08 18:24:29 -0500 |
commit | c6f8f70f0fd86edf35f6efdef08ff44cb0429778 (patch) | |
tree | ae97b0d2a4577c21f169f46735742dcb59fed569 /engine/lib/output.php | |
parent | 19a8af878b74dd9e840fb45c1be4c3a61e93cd64 (diff) | |
parent | 57e3793a560b9b376b037d5bfe3f1aafaa90c78d (diff) | |
download | elgg-c6f8f70f0fd86edf35f6efdef08ff44cb0429778.tar.gz elgg-c6f8f70f0fd86edf35f6efdef08ff44cb0429778.tar.bz2 |
Merge branch '1.8'
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r-- | engine/lib/output.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); |