dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecf739b
)
Fix regression from r45749: only UTF-8 normalize strings
author
Roan Kattouw
<catrope@users.mediawiki.org>
Thu, 15 Jan 2009 10:26:23 +0000
(10:26 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Thu, 15 Jan 2009 10:26:23 +0000
(10:26 +0000)
includes/normal/UtfNormal.php
patch
|
blob
|
history
diff --git
a/includes/normal/UtfNormal.php
b/includes/normal/UtfNormal.php
index
4f8b129
..
3f08cb4
100644
(file)
--- a/
includes/normal/UtfNormal.php
+++ b/
includes/normal/UtfNormal.php
@@
-72,6
+72,9
@@
class UtfNormal {
* @return string a clean, shiny, normalized UTF-8 string
*/
static function cleanUp( $string ) {
+ if( !is_string( $string ) ) {
+ return $string;
+ }
if( NORMALIZE_ICU ) {
# We exclude a few chars that ICU would not.
$string = preg_replace(