cvs: /php4/ext/standard string.c

From: Date: Sun, 13 Feb 2000 15:36:21 +0000
Subject: cvs: /php4/ext/standard string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-10217@lists.php.net to get a copy of this message
zeev Sun Feb 13 07:36:21 2000 EDT Modified files: /php4/ext/standard string.c Log: - Hopefully fix strip_tags bug @- Fix overrun in strip_tags (Stas, Zend library) Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.97 php4/ext/standard/string.c:1.98 --- php4/ext/standard/string.c:1.97 Sun Feb 13 06:56:35 2000 +++ php4/ext/standard/string.c Sun Feb 13 07:35:51 2000 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.97 2000/02/13 14:56:35 thies Exp $ */ +/* $Id: string.c,v 1.98 2000/02/13 15:35:51 zeev Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -2265,8 +2265,8 @@ if(allow) { *(tp++) = '>'; *tp='\0'; - if(php_tag_find(tbuf, tp-tbuf, allow)) { - memcpy(rp,tbuf,tp-tbuf); + if(php_tag_find(tbuf, tp-tbuf+1, allow)) { + memcpy(rp,tbuf,tp-tbuf+1); rp += tp-tbuf; } tp = tbuf;

« previous php.version4 (#10217) next »