Bug #17838 Updated: getss not stripping <title>
| From: | derick@php.net | Date: | Thu, 04 Jul 2002 07:50:15 +0000 |
| Subject: | Bug #17838 Updated: getss not stripping <title> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13082@lists.php.net to get a copy of this message | ||
ID: 17838
Updated by: derick@php.net
Reported By: rene@comunica2.net
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
User error -> bogus
Previous Comments:
------------------------------------------------------------------------
[2002-07-04 03:48:19] rene@comunica2.net
Hay guys, I appologize about this bug report. I was mistaken. This
function only strips tags, not the content of the tag. When I said it
did not strip the tag, I was wrong. I does strip the title tags and
nicely leaves the text that was surrounded by them. The thing is that I
wanted the text to be removed and of course that won't happen with this
function. Sorry for the false alarm and the time lost. I discovered
this when I was looking at other HTML filters and the same thing
happened of course!
------------------------------------------------------------------------
[2002-06-20 18:44:21] sniper@php.net
Then try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
------------------------------------------------------------------------
[2002-06-20 08:44:13] troels@arvin.dk
I can't find any place in the CVS diffs/logs for file.c where the
fgetss() function has been changed in a long time. Where would I find
the fix?
I can reproduce the bug with PHP 4.2.1.
------------------------------------------------------------------------
[2002-06-19 13:28:18] sniper@php.net
Seems to be fixed in CVS at least..I don't have 4.2.1 installed at the
moment, but can you please try that first?
--Jani
------------------------------------------------------------------------
[2002-06-19 10:32:36] rene@comunica2.net
I used fgetss to read and strip a regular html file which contained
<title>bla bla </title>. It did not get stripped with the following:
$buffer = fgetss($if,
4096,"<p><span><b><br><a><div>");
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17838&edit=1