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
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
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.
-
MODX Staff
- 1,535 Posts
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