aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-03-22 14:06:53 +0000
committerplegall <plg@piwigo.org>2011-03-22 14:06:53 +0000
commit0c7171750b0cfdd09e76acdc47b901bcedaf708a (patch)
treec2e3eaa75daea814205c2d1ec37d16759fb0e456
parent07e5f40ff540c1f3e8e1d7436e2e18c02cd1a556 (diff)
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/branches/2.1@9819 68402e56-0260-453c-a942-63ccdbb3a9ee
-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 822c36da0..9aa9b9e40 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -382,7 +382,7 @@ function str2url($str)
if (empty($res))
{
- $res = $raw;
+ $res = str_replace(' ','_', $raw);
}
return $res;