JoomFish / joomfish-2.5

Joom!Fish 2.5 core development
http://www.joomfish.net/
34 stars 27 forks source link

Compatibility issue with "custom code" modules - jf inserts extra characters #141

Open teapotandcake opened 11 years ago

teapotandcake commented 11 years ago

I noticed an issue with module extensions that allow for custom php/javascript to be used. Although the modules get translated, joomfish inserts backwards slashes into the code, breaking it in the process. The old version on joomla 1.5 didn't do this.

I tried and encountered the same problem with the following module extensions (probably does the same with others too): Flexi Custom Code Easy Script Blank Module

For example the code I enter is: <div class="classname"> <?php include $_SERVER['DOCUMENT_ROOT'] . '/path/script.php'; ?> </div>

But on save, Joomfish turns it into:

<div class=\"classname\"> <?php include $_SERVER[\'DOCUMENT_ROOT\'] . \'/path/script.php\'; ?> </div>

Here's a screenshot: http://img94.imageshack.us/img94/1564/joomfishflexi.jpg