Re: [PHP4BETA] cvs: /php4/ext/standard string.c

From: Date: Sun, 13 Feb 2000 15:20:35 +0000
Subject: Re: [PHP4BETA] cvs: /php4/ext/standard string.c
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10216@lists.php.net to get a copy of this message
Are you sure this fixes the bug? Was he actually using binary data? Andi On Sun, 13 Feb 2000, Thies C. Arntzen wrote: > thies Sun Feb 13 06:57:06 2000 EDT > > Modified files: > /php4/ext/standard string.c > Log: > @- Fixed crash in strip_tags() and related functions. (Thies) > > > Index: php4/ext/standard/string.c > diff -u php4/ext/standard/string.c:1.96 php4/ext/standard/string.c:1.97 > --- php4/ext/standard/string.c:1.96 Fri Feb 11 07:59:29 2000 > +++ php4/ext/standard/string.c Sun Feb 13 06:56:35 2000 > @@ -18,7 +18,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: string.c,v 1.96 2000/02/11 15:59:29 zeev Exp $ */ > +/* $Id: string.c,v 1.97 2000/02/13 14:56:35 thies Exp $ */ > > /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ > > @@ -2058,7 +2058,7 @@ > break; > } > convert_to_string_ex(str); > - buf = estrdup((*str)->value.str.val); > + buf = estrndup((*str)->value.str.val,(*str)->value.str.len); > php_strip_tags(buf, (*str)->value.str.len, 0, allowed_tags, allowed_tags_len); > RETURN_STRING(buf, 0); > } > @@ -2210,7 +2210,7 @@ > char *tbuf, *buf, *p, *tp, *rp, c, lc; > int br, i=0; > > - buf = estrdup(rbuf); > + buf = estrndup(rbuf,len); > c = *buf; > lc = '\0'; > p = buf; > > > >

« previous php.version4 (#10216) next »