Hello, I madde this patch for bug #11244 (http://bugs.php.net/bug.php?id=11244). Note: i'm not sure about the '/' and '\\' cases.
Index: string.c =================================================================== RCS file: /repository/php4/ext/standard/string.c,v retrieving revision 1.266 diff -u -r1.266 string.c --- string.c 20 Mar 2002 14:38:11 -0000 1.266 +++ string.c 24 Mar 2002 18:13:23 -0000 @@ -2849,6 +2849,30 @@ case ')': *target = '('; break; + case '[': + *target = ']'; + break; + case ']': + *target = '['; + break; + case '{': + *target = '}'; + break; + case '}': + *target = '{'; + break; + case '<': + *target = '>'; + break; + case '>': + *target = '<'; + break; + case '\\': + *target = '/'; + break; + case '/': + *target = '\\'; + break; default: break; } _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php