hirokawa                                 Sat, 06 Aug 2011 15:23:06 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=314377

Log:
changed mapping of 0xa5 for SJIS-mac to prevent security attack.

Changed paths:
    U   php/php-src/trunk/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c

Modified: php/php-src/trunk/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c
===================================================================
--- php/php-src/trunk/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c  
2011-08-06 14:47:44 UTC (rev 314376)
+++ php/php-src/trunk/ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c  
2011-08-06 15:23:06 UTC (rev 314377)
@@ -568,7 +568,7 @@
                        } else if (c == 0xa0) {
                                s1 = 0x00a0;
                        } else if (c == 0xa5) {         /* YEN SIGN */
-                               s1 = 0x005c;
+                               s1 = 0x216f;    /* FULLWIDTH YEN SIGN */
                        } else if (c == 0xff3c) {       /* FULLWIDTH REVERSE 
SOLIDUS */
                                s1 = 0x2140;
                        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to