Foren / Cotonti / Bugs / Archive / PHP in PMs

oc
#1 4. September 2008, 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 4. September 2008, 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 4. September 2008, 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 4. September 2008, 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 5. September 2008, 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 5. September 2008, 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 5. September 2008, 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 5. September 2008, 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 5. September 2008, 15:31
Sorted out, thanks Orkan.
May the Source be with you!

Dieses Thema ist gesperrt, neue Beiträge sind nicht erlaubt.