We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41931 ☆ A M B ☆
    • 38 Posts
    Hi,

    Recently there was a change in my server for PHP Version 5.3.14 and MySQL 5.0.77 and when doing some post it as a slash before the quotes "" messing around my code, anyone know how to solve this?

    Exemplo:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    after save

    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">

    Thanks

    Roca
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You have to turn off magic_quotes_gpc for PHP. How you do this depends on your server configuration.
        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
        • 41931 ☆ A M B ☆
        • 38 Posts
        Thanks, working fine!
          • 9995
          • 1,613 Posts
          jup have to do that all the time.

          into the absolute root place a file php.ini with

          magic_quotes_gpc = Off

            Evolution user, I like the back-end speed and simplicity smiley
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Depending on the server configuration, that may not be sufficient. php.ini files are not inherited across folders, so it may be necessary to put one in the /manager/ folder to take care of the index.php for the manager.
              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