Fix umlaut replacement to happen before all (UTF-8-)umlauts are stripped.
This commit is contained in:
parent
99366d0997
commit
9604e0392b
@ -121,13 +121,13 @@ function serendipity_makeFilename($str, $stripDots = false) {
|
||||
}
|
||||
} else {
|
||||
// Replace international chars not detected by every locale
|
||||
$str = str_replace($from, $to, $str);
|
||||
|
||||
if (LANG_CHARSET == 'UTF-8') {
|
||||
// URLs need to be 7bit - since this function takes care of the most common ISO-8859-1
|
||||
// characters, try to UTF8-decode the string first.
|
||||
$str = utf8_decode($str);
|
||||
}
|
||||
|
||||
$str = str_replace($from, $to, $str);
|
||||
}
|
||||
|
||||
// Nuke chars not allowed in our URI
|
||||
|
Loading…
x
Reference in New Issue
Block a user