From d700a5917233fb8049589a9e0aef3d94e87fb320 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 6 Apr 2006 02:23:54 +0000 Subject: improvement: urls for tags can contain now only the tag or the id and tag improvement: urls for category can be now id and category names (instead of only id) improvement: added 2 indexes (#image_tag.tag_id and #tags.url_name) improvement: identification, register, search pages automatically set focus on first form input improvement: focus, nofocus css class now valid for all forms fix: category comment is tag stripped in category_subcats.inc.php (otherwise issues with html/scripts inside category comment) git-svn-id: http://piwigo.org/svn/trunk@1131 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index d8b86743f..5a1245c4b 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -290,10 +290,10 @@ function str2url($str) $str = str_replace('¼', 'OE', $str); $str = str_replace('½', 'oe', $str); - $str = preg_replace('/[^a-z0-9_\s\'\:\/\[\]-]/','',strtolower($str)); - $str = preg_replace('/[\s\'\:\/\[\]-]+/',' ',trim($str)); + $str = preg_replace('/[^a-z0-9_\s\'\:\/\[\],-]/','',strtolower($str)); + $str = preg_replace('/[\s\'\:\/\[\],-]+/',' ',trim($str)); $res = str_replace(' ','_',$str); - + return $res; } -- cgit v1.2.3