From 7434438b98bac23b779bb29431ffeeaa7d3316b1 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 6 Nov 2004 02:52:25 +0000 Subject: [PATCH] Don't forgot to actually _make_ the replacements for illegal chars. :P --- includes/normal/UtfNormal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/normal/UtfNormal.php b/includes/normal/UtfNormal.php index 6819b710a8..b3592908f9 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 -- 2.20.1