[patch] to string.c
| From: | Tal Peer | Date: | Sun, 24 Mar 2002 18:31:25 +0000 |
| Subject: | [patch] to string.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81729@lists.php.net to get a copy of this message | ||
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 worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com