Mantis - Quercus
Viewing Issue Advanced Details
2348 minor always 01-20-08 07:41 01-24-08 10:13
rvt  
nam  
normal  
closed 3.1.5  
fixed  
none    
none 3.1.5  
0002348: htmlentities handled incorrecty between mod_php and quercus
htmlentities in resin doesn't behave the same as PHP does.
It can always be produced with latest SVN of resin.


<?php
print 'htmlentities(\'" \\\' &\') - ' . htmlentities('" \' &') . "\n";
print 'htmlentities(\'" \\\' &\') - ' . htmlentities('" \' &', ENT_COMPAT) . "\n";
print 'htmlentities(\'" \\\' &\') - ' . htmlentities('" \' &', ENT_QUOTES) . "\n";
print 'htmlentities(\'" \\\' &\') - ' . htmlentities('" \' &', ENT_NOQUOTES) . "\n";
?>

output resin:
htmlentities('" \' &') - &quot; ' &amp;
htmlentities('" \' &') - &quot; ' &amp;
htmlentities('" \' &') - &quot; ' &amp;
htmlentities('" \' &') - &quot; ' &amp;

output mod_php
htmlentities('" \' &') - &quot; ' &amp;
htmlentities('" \' &') - &quot; ' &amp;
htmlentities('" \' &') - &quot; &0000039; &amp;
htmlentities('" \' &') - " ' &amp;



Notes
(0002675)
nam   
01-24-08 10:13   
php/1115

quote style option now supported