Escape characters getting added to sub-template after save

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
baptiste
Forum Members
Forum Members
Posts: 15
Joined: Tue Dec 05, 2006 4:58 pm

Escape characters getting added to sub-template after save

Post by baptiste »

CMSMS 1.0.2

I revisted a site that I've developed to fix a few minor problems, but I started getting errors when viewing the site:

'Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\xampp\htdocs\barrington-giftware.com\tmp\templates_c\Cataloger^%%04^04B^04BA0690%%module_db_tpl%3ACataloger%3Bcatalog_15.php on line 59'

So I looked back at the cateloger sub-template that I had just changed and escape characters ('\') had been added!

Even if I copy and paste the correct, non-escaped, text into this template, after saving it has escape chars added! Each save adds more '\' so there's '\\\\\\' at the moment!

But this does not happen on the test site, only on my local development copy.
Last edited by baptiste on Tue Mar 06, 2007 4:36 pm, edited 1 time in total.
rick

Re: Escape characters getting added to sub-template after save

Post by rick »

I had the same problem. In the production enviroment escape characters was added then I edited templates but in my local development enviroment it worked fine. Even when I was working against the same database. It turned out to be PHP Magic Quotes that caused the problem.

Best regards
/Christian Rick
Post Reply

Return to “CMSMS Core”