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:
93c098d
)
Don't forgot to actually _make_ the replacements for illegal chars. :P
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 6 Nov 2004 02:52:25 +0000
(
02:52
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 6 Nov 2004 02:52:25 +0000
(
02:52
+0000)
includes/normal/UtfNormal.php
patch
|
blob
|
history
diff --git
a/includes/normal/UtfNormal.php
b/includes/normal/UtfNormal.php
index
6819b71
..
b359290
100644
(file)
--- 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