cvs: php4 /ext/standard string.c

From: Date: Sun, 29 Apr 2001 13:16:05 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5359@lists.php.net to get a copy of this message
elixer Sun Apr 29 06:16:05 2001 EDT Modified files: /php4/ext/standard string.c Log: Really fix bug #10362. # My previous fix caused a segfault when there were parens in an unallowed # tag :( Thanks Andi. Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.195 php4/ext/standard/string.c:1.196 --- php4/ext/standard/string.c:1.195 Sat Apr 28 16:07:51 2001 +++ php4/ext/standard/string.c Sun Apr 29 06:16:05 2001 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.195 2001/04/28 23:07:51 elixer Exp $ */ +/* $Id: string.c,v 1.196 2001/04/29 13:16:05 elixer Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -2768,7 +2768,7 @@ lc = '('; br++; } - } else if (state == 1) { + } else if (allow && state == 1) { *(tp++) = c; } else if (state == 0) { *(rp++) = c; @@ -2781,7 +2781,7 @@ lc = ')'; br--; } - } else if (state == 1) { + } else if (allow && state == 1) { *(tp++) = c; } else if (state == 0) { *(rp++) = c;

« previous php.cvs (#5359) next »