We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5683
    • 96 Posts
    I have a problem: if I introduce a backslash ’\’ in the document content, it does not appear in the outputted HTML page. If I want to output a backslash, I have to quote it ’\\’.

    The cause is a "stripslashes" call in document.parser.class.inc.php (there is only one stripslashes, in MODx 0.9.1). If I remove it, everything looks fine.

    My question is: what is the purpose of that "stripslashes" in the parser? Can I safely remove it?
    Thanks,
    Luca
      • 19726
      • 239 Posts
      Just FYI, I posted this in the bugtracker already a while ago. See http://modxcms.com/bugs/task/181
        • 5683
        • 96 Posts
        Thanks Mitch, that’s exactly my problem. As I can see, you didn’t get answers in the bug tracker, so the question remains if this is a "feature" (and why) or a bug rolleyes
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: Commodore64 at Apr 26, 2006, 11:55 AM

          Thanks Mitch, that’s exactly my problem. As I can see, you didn’t get answers in the bug tracker, so the question remains if this is a "feature" (and why) or a bug rolleyes

          Bug or feature, it should be addressed. I’ll look into it now that I am aware of it.
            • 5683
            • 96 Posts
            Great laugh I’ll post a LaTeX plugin when this situation is clarified wink
              • 11617
              • 1 Posts
              Hi guys,

              the same problem described by Commodore64 persist here. I use the 0.9.2.1 Rev 1005. This BUG can be reproduced any time.

              Thanx,

              Chris
                • 3763
                • 155 Posts
                Yep, I can confirm that too smiley

                MODx 0.9.2.1 (rev 1005)

                For example here:
                http://www.frozenminds.com/disable-sessionid.html (last code block)

                A much better example is here:
                http://www.frozenminds.com/slash-test.html

                I have used following code in my docment:
                <p>1 slash = \</p>
                <p>2 slashes = \\</p>
                <p>3 slashes = \\\</p>
                <p>4 slashes = \\\\</p>
                <p>5 slashes = \\\\\</p>

                (You can see the results on the page above)

                BTW: I have also updated the bug report http://modxcms.com/bugs/task/181

                Boby
                  ...my Photo Gallery on Flickr...
                  • 22815
                  • 1,097 Posts
                  If the comment says "fixed in rev#1247", it isn’t particularly helpful to state that it is present in rev 1005.

                  The Rev number is the real version number. Yes, that means there have been a few hundred updates since 0.9.2.1.

                  That said, given that you’ve raised the issue from the dead, I *can* confirm that it is present in rev 1371. That isn’t the absolute latest 0.9.5 beta, but is post-parser-revert (1247 probably had the experimental parser). I’ll check the latest rev later and update the bugtracker accordingly unless someone beats me to it.
                    No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
                    MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                    Forum: Where to post threads about add-ons | Forum Rules
                    Like MODx? donate (and/or share your resources)
                    Like me? See my Amazon wishlist
                    MODx "Most Promising CMS" - so appropriate!
                    • 10487 MODX Staff
                    • 1,535 Posts
                    Garry Nutting Reply #9, 20 years ago
                    I found this problem to still be in MODx 0.9.5 public beta.

                    So, I’ve done a bit of testing and put in the fix to SVN to remove the stripslashes() call. From my testing so far, it isn’t causing any adverse effects by not having it there. (bugtracker has been updated)
                      Garry Nutting
                      Senior Developer
                      MODX, LLC

                      Email: [email protected]
                      Twitter: @garryn
                      Web: modx.com
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: garryn at Sep 13, 2006, 03:43 PM

                      I found this problem to still be in MODx 0.9.5 public beta.

                      So, I’ve done a bit of testing and put in the fix to SVN to remove the stripslashes() call. From my testing so far, it isn’t causing any adverse effects by not having it there. (bugtracker has been updated)

                      Fix committed in revision 1416, which is on it’s way through sanity checks before hopefully becoming the second public beta release of 0.9.5. More soon.