From: Brion Vibber Date: Sat, 6 Nov 2004 02:52:25 +0000 (+0000) Subject: Don't forgot to actually _make_ the replacements for illegal chars. :P X-Git-Tag: 1.5.0alpha1~1393 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=7434438b98bac23b779bb29431ffeeaa7d3316b1;p=lhc%2Fweb%2Fwiklou.git Don't forgot to actually _make_ the replacements for illegal chars. :P --- 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