| Bug #5857 | fgetss() with allow_tags error | ||||
|---|---|---|---|---|---|
| Submitted: | 30 Jul 2000 5:44am UTC | Modified: | 30 Jul 2000 7:01am UTC | ||
| From: | ccjeagle at ms6 dot hinet dot net | Assigned to: | rasmus | ||
| Status: | Closed | Category: | Other | ||
| Version: | 4.0.1pl2 | OS: | FreeBSD-4.1RC | ||
[30 Jul 2000 6:16am 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.
[30 Jul 2000 7:01am UTC] rasmus@php.net
Found it - fixed in CVS

// 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.