SECURITY: Don't normalize U+FF3C to \
authorcsteipp <csteipp@wikimedia.org>
Fri, 6 Dec 2013 21:34:30 +0000 (13:34 -0800)
committercsteipp <csteipp@wikimedia.org>
Tue, 14 Jan 2014 06:08:45 +0000 (22:08 -0800)
Bug: 58088
Change-Id: I10bf8dbce41bd617ddf16eb5fc20af1b1cb5f201

includes/Sanitizer.php

index a6fb6d0..7461a8b 100644 (file)
@@ -867,7 +867,7 @@ class Sanitizer {
 
                // Normalize Halfwidth and Fullwidth Unicode block that IE6 might treat as ascii
                $value = preg_replace_callback(
-                       '/[ï¼\81½\9a]/u', // U+FF01 to U+FF5A
+                       '/[ï¼\81¼»ï¼½-ï½\9a]/u', // U+FF01 to U+FF5A, excluding U+FF3C (bug 58088)
                        function ( $matches ) {
                                $cp = utf8ToCodepoint( $matches[0] );
                                if ( $cp === false ) {