Forums / Cotonti / Bugs / Archive / PHP in PMs

oc
#1 2008-09-04 17:36
<?PHP

$L['hack'] = 'Hack';

?>

what the hell? i only checked for pms but i'm not sure... it parses <?php without making <'s to < or >

edit: yeah, if you check code, you'll see there's a <?php in the source html but not displayed.
Trustmaster
#2 2008-09-04 17:46
Do you mean that < doesn't get replaced with HTML entity or you mean that PHP code gets executed?
May the Source be with you!
Orkan
#3 2008-09-04 18:37
I dont know why but the code is parsed twice.
First Chili uses php.js recipe and its looks good, but then html.js recipe is loaded and parsed.

With all-in-one recipes.js the problem is gone...
Perl - the only language that looks the same before and after RSA encryption.
oc
#4 2008-09-04 21:27
This is not something about Chili. It happens even if you use Textboxer 2.0.

Btw Trustmaster, it doesn't replace "<" only, it sure doesn't execute a code.
Orkan
#5 2008-09-05 03:26
Now, Im not quite sure what is your point, oc?
Are we talking about code highlighting or executing PHP snippets here on forums?
Perl - the only language that looks the same before and after RSA encryption.
oc
#6 2008-09-05 05:23
It's not a replace bug, it only doesn't show the codes like

[highlight ]
<?PHP

echo '...';

?>
[/highlight]

it doesn't show the first line of it.
Orkan
#7 2008-09-05 09:09
so.. why you think its not a Chili fault?

FireBug shows two 2 recipes being loaded: php.js + html.js
I didnt debug it much, but Chili uses html.js recipe to highlight this code once again - and then the "<?PHP" is gone...

Chili is not the best script to debug (many small functions around) and FireBug sucks in FF3 - but I'll try to figure this out.
Perl - the only language that looks the same before and after RSA encryption.
oc
#8 2008-09-05 14:30
This is a very critical bug!

It doesn't happen in forums but I can run js in the PM section. I'll fix the bug as soon as possible.

Maybe chili has some OTHER problems, only about showing the present code in the text, but what i was talking was, via PM, there is a critical bug.

Be aware!
Trustmaster
#9 2008-09-05 15:31
Sorted out, thanks Orkan.
May the Source be with you!

This topic is locked, new posts are not allowed.