We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21970
    • 12 Posts
    Anyone else noticed a weird behaviour that characters automatically been escaped in text boxes? For example editing a new template and after every saving a new backslash appear.

    <!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\\\">
    <head>
    <title>[*pagetitle*] - [(site_name)]</title>
    <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=[(modx_charset)]\\\" />
    <base href=\\\"[(site_url)]\\\"></base>
    <link rel=\\\"stylesheet\\\" href=\\\"assets/templates/demo/default.css\\\" type=\\\"text/css\\\" />
    <link rel=\\\"alternate\\\" type=\\\"application/rss+xml\\\" title=\\\"RSS 2.0\\\" href=\\\"[(site_url)][~11~]\\\" />
    </head>
    <body>
    


    I noticed the same in the MODx configuration text boxes when language is set to german
    Hallo [+uid+]! \\n\\nHier sind Ihre Anmeldendaten für [+sname+] MODx-Manager: \\n\\nBenutzername: [+uid+] \\nPasswort: [+pwd+] \\n\\nSobald Sie sich in Ihrem Account ([+surl+]) angemeldet haben, können Sie Ihr Passwort ändern.\\n\\nMit freundlichen Grüßen \\n\\nIhr Website-Administrator
    


    This issue occurred on a new MODx 1.0.4 installation on a Linux box, PHP Version 5.3.1, MySQL 5.0.5, charset UTF-8

      • 26931
      • 2,314 Posts
      hi oalster,

      sounds like you need to turn off magic_quotes_gpc http://modxcms.com/forums/index.php?topic=49030.0
        • 21970
        • 12 Posts
        Quote from: sharkbait at Jun 11, 2010, 11:20 PM

        sounds like you need to turn off magic_quotes_gpc http://modxcms.com/forums/index.php?topic=49030.0
        Thanks sharkbait,

        magic_quotes_gpc were on. Changing to off solved the issue.