We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2901
    • 277 Posts
    Hi there

    I have a real strange behavior with chunks in 1.0.3. Somehow my html code is changed from
    <dt><label for="mitteilung" accesskey="c">Kommentar</label> </dt>
    		<dd><textarea cols="40" rows="10" name="comments" eform="Mitteilung:html:1" id="mitteilung"></textarea></dd>

    to
    <dt><label for=\"mitteilung\" accesskey=\"c\">Kommentar</label> </dt>
    		<dd><textarea cols=\"40\" rows=\"10\" name=\"comments\" eform=\"Mitteilung:html:1\" id=\"mitteilung\"></textarea></dd>


    This Happens when I copy the code from a 1.0.2 chunk to a 1.0.3 chunk. all the backslashes are being add on saving the chunk.

    My System
    MAMP 1.9
    PHP 5.3.2
    MySQL 5.1.44
      • 2901
      • 277 Posts
      this is even worse

      with each saving it adds new back slashes, like
       <tr valign=\\\\\\\"top\\\\\\\">
            <td>Name/Vorname:</td>
            <td>[+Name+]</td>
          </tr>
      <tr valign=\\\"top\\\">
            <td>Firma:</td>
            <td>[+firma+]</td>
          </tr>


      OK now changed PHP to 5.2.13 and this effect is gone! So it clearly has to do with the PHP Version.
        • 26931
        • 2,314 Posts
        if you are using php5.3 magic_quotes needs to be disabled http://modxcms.com/forums/index.php?topic=41945.0