We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12028
    • 152 Posts
    When editing pages, templates, chunks etc. quote marks are escaped on save. And when saving again the backslash are duplicated.

    Original:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="da"> 


    Becomes on save:
    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"da\" lang=\"da\">


    After downgrading to PHP 5.2 the problem disappears.

    I think there where something about this in the forum a couple a days ago - but it slipped through my fingers, and I can’t find it again, sorry for that...
      - A small step for mankind, so why not take two...

      Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
    • Sounds more like the magic_quotes_gpc setting to me.

      http://il.php.net/manual/en/security.magicquotes.what.php
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 12028
        • 152 Posts
        Quote from: sottwell at Aug 09, 2009, 10:41 AM

        Sounds more like the magic_quotes_gpc setting to me.

        http://il.php.net/manual/en/security.magicquotes.what.php

        Sottwell, you are absolutely right!
        Though I deactivated the magic_quotes_gpc option in my hosts control panel, I forgot to check that it was deactivated in reality. (My host have - yet - a problem...)

        But many thanks for your help!
          - A small step for mankind, so why not take two...

          Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!