diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2004-11-06 02:52:25 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2004-11-06 02:52:25 +0000 |
commit | 7434438b98bac23b779bb29431ffeeaa7d3316b1 (patch) | |
tree | 13d0cc12bcdff0734199baf6067afb386220b77a /includes/normal | |
parent | 93c098dfb7f7ffd465d51a5f07c50a748c28823e (diff) | |
download | mediawikicore-7434438b98bac23b779bb29431ffeeaa7d3316b1.tar.gz mediawikicore-7434438b98bac23b779bb29431ffeeaa7d3316b1.zip |
Don't forgot to actually _make_ the replacements for illegal chars. :P
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/6178
Diffstat (limited to 'includes/normal')
-rw-r--r-- | includes/normal/UtfNormal.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/normal/UtfNormal.php b/includes/normal/UtfNormal.php index 6819b710a8bb..b3592908f94f 100644 --- a/includes/normal/UtfNormal.php +++ b/includes/normal/UtfNormal.php @@ -258,7 +258,7 @@ class UtfNormal { */ function quickIsNFCVerify( &$string ) { # Screen out some characters that eg won't be allowed in XML - preg_replace( '/[\x00-\x08\x0b\x0c\x0e-\x1f]/', UTF8_REPLACEMENT, $string ); + $string = preg_replace( '/[\x00-\x08\x0b\x0c\x0e-\x1f]/', UTF8_REPLACEMENT, $string ); # ASCII is always valid NFC! # If we're only ever given plain ASCII, we can avoid the overhead |