We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11030
    • 21 Posts
    Hey guys,

    Currently experiencing an unusal problem with a client’s modx installation. I’ve recently installed ModX 1.0.5 and i’ve encounted this error that when i use the image upload function from the resource content, the script adds numerious \$quot;\\ in the url, height, width and class of the image.

    Below is image code, taken from the HTML editor.
    <img class="\&quot;\\&quot;right\\&quot;\&quot;" src="\&quot;\\&quot;images/nationalXC.jpg\\&quot;\&quot;" alt="\&quot;\\&quot;National\\&quot;\&quot;" width="\&quot;\\&quot;200\\&quot;\&quot;" height="\&quot;\\&quot;123\\&quot;\&quot;" />

    When i try and manually remove them, they are automatically added again, and as you can probably assume, the images don’t work.

    As usual, any help would be greatly appricated and thanks for you time.

    Barry
      • 21257 MODX Staff
      • 730 Posts
      It sounds as if the PHP setting "magic_quotes_gpc" is turned on.
      http://php.net/manual/en/security.magicquotes.disabling.php
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 11030
        • 21 Posts
        Am i right in thinking that i would have to contact my server provider to change this for me, or is the a file i can upload to change this for me?.

        EDIT
        Apologises, i noticed a .htaccess option. Thank you for your time