Open GoogleCodeExporter opened 9 years ago
sorry for being ignorant here... but where does the \\\\ come from? Does
magicquotes add 4 slashes when it's turned on?
Original comment by ccagle8
on 4 Jan 2012 at 4:37
<?php echo '\\ \\\\'; ?>
result:
\ \\
Original comment by carnav
on 4 Jan 2012 at 4:52
I also noticed a problem when editing theme files if there are backslashes.
Example: if you edit template.php (in the backend), insert <?php echo '\\'; ?>
somewhere, and save it, it is changed to <?php echo '\'; ?> and the site is
then broken.
Maybe this could make another issue...
Original comment by carnav
on 4 Jan 2012 at 5:31
r620 has fixed the theme-edit issue in my last comment.
Going back to this issue about page saving... FYI the same problem happens when
saving components that have one or more backslashes (if get_magic_quotes_gpc
on).
It's because components.php also uses the safe_slash_html() function (basic.php)
Original comment by carnav
on 7 Jan 2012 at 9:56
I'm sorry...
I've been able to test this in a server with php 5.2 and get_magic_quotes_gpc
on, and works ok, no slashes removed.
So it seems it's something in my local test server (XAMPP)
(I hadn't been able to test this in my usual webhost, as it had upgraded php to
5.3 and doesn't let me enable magic quotes.)
So, unless you or someone else has this problem (backslashes removed when
saving page or component), please discard this issue.
Original comment by carnav
on 13 Jan 2012 at 10:32
thanks for reporting back carnav. I gladly will close it...
Original comment by ccagle8
on 14 Jan 2012 at 2:24
Do we at least detect this in health check ?
Perhaps we should.
Original comment by tablatronics
on 24 Jul 2012 at 1:57
Original issue reported on code.google.com by
carnav
on 4 Jan 2012 at 2:21