php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5857 fgetss() with allow_tags error
Submitted: 2000-07-30 05:44 UTC Modified: 2000-07-30 07:01 UTC
From: ccjeagle at ms6 dot hinet dot net Assigned: rasmus
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: FreeBSD-4.1RC
Private report: No CVE-ID:
 [2000-07-30 05:44 UTC] ccjeagle at ms6 dot hinet dot net
// Begin of file.php
<font size="+1"><? echo "haha" ;?><b>HAHAH</b></font>
...........
// End of file.php

I found that the first tag after <? ?> couldn't be kept correctly. Say:
// Begin of my test script
$fp = fopen('file.php','r') ;
echo fgetss($fp,100,"<font><b>") ;
// End of my test script

The result would be <font size="+1">HAHAH</b></font>,
Seems that the first tag after <? ?>(<b> in this case) will lost.

My php.ini file is the same as php.ini-optimized.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-30 06:16 UTC] rasmus@php.net
Ah crap!  Yes, that is a bug.  One of these bits of code that takes a little while to grok.  I'll get to it soon.
 [2000-07-30 07:01 UTC] rasmus@php.net
Found it - fixed in CVS
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 01:01:56 2014 UTC