mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-05 07:39:59 +03:00
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
This commit is contained in:
parent
b9a37cd6f0
commit
d700a59172
15 changed files with 246 additions and 101 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue