aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-03-22 14:12:27 +0000
committerplegall <plg@piwigo.org>2011-03-22 14:12:27 +0000
commitdee94187201dab6a3f82e531dc12fe1f73fc5605 (patch)
treef059144835d1456137f1a86c500e1f91aec08cb6 /include/functions.inc.php
parent197d3954ddbdb53bbd2f514bcd4efac8dd33318f (diff)
merge r9819 from branch 2.1 to trunk
bug 2228 fixed: there should be no blank space in the URL to avoid infinite loop redirection (this happens with chinese only characters + blank space in the category name). Note: this problem does not concern tag names because there is no redirection when the tag name does not match tags.url_name git-svn-id: http://piwigo.org/svn/trunk@9820 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 4b276b662..015eb8849 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -392,7 +392,7 @@ function str2url($str)
if (empty($res))
{
- $res = $raw;
+ $res = str_replace(' ','_', $raw);
}
return $res;