PHP 4.0 Bug #5857: fgetss() with allow_tags error
| From: | ccjeagle at ms6 dot hinet dot net | Date: | Sun, 30 Jul 2000 03:44:23 +0000 |
| Subject: | PHP 4.0 Bug #5857: fgetss() with allow_tags error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-26876@lists.php.net to get a copy of this message | ||
From: ccjeagle@ms6.hinet.net
Operating system: FreeBSD-4.1RC
PHP version: 4.0.1pl2
PHP Bug Type: Other
Bug description: fgetss() with allow_tags error
// 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.