moriyoshi Mon Aug 18 03:26:22 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/standard html.c
Log:
- MFH: beware of signedness
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.111.2.2.2.14.2.10&r2=1.111.2.2.2.14.2.11&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.111.2.2.2.14.2.10
php-src/ext/standard/html.c:1.111.2.2.2.14.2.11
--- php-src/ext/standard/html.c:1.111.2.2.2.14.2.10 Sun Aug 10 13:26:13 2008
+++ php-src/ext/standard/html.c Mon Aug 18 03:26:21 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.111.2.2.2.14.2.10 2008/08/10 13:26:13 lbarnaud Exp $ */
+/* $Id: html.c,v 1.111.2.2.2.14.2.11 2008/08/18 03:26:21 moriyoshi Exp $ */
/*
* HTML entity resources:
@@ -1198,21 +1198,21 @@
if (*s == 'x' || *s ==
'X') {
s++;
while (s < e) {
- if
(!isxdigit(*s++)) {
+ if
(!isxdigit((int)*(unsigned char *)s++)) {
goto encode_amp;
}
}
/* Dec (Z)*/
} else {
while (s < e) {
- if
(!isdigit(*s++)) {
+ if
(!isdigit((int)*(unsigned char *)s++)) {
goto encode_amp;
}
}
}
} else { /* text entities */
while (s < e) {
- if
(!isalnum(*s++)) {
+ if
(!isalnum((int)*(unsigned char *)s++)) {
goto
encode_amp;
}
}-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
