<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Yes, after some testing, I think that what should work is this:<br>
<br>
Only use stripslashes when get_magic_quotes_gpc() is true.<br>
<br>
NOTE:<br>
<ul>
<li>magic_quotes_gpc is enabled by default on php < 5.3</li>
<li>magic_quotes_gpc is deprecated (but still ENABLED by default)
in php 5.3</li>
<li>magic_quotes_gpc is REMOVED from php as of 5.4.0<br>
</li>
</ul>
<div class="moz-cite-prefix">Op 23-5-2013 16:40, Tom Reijnders
schreef:<br>
</div>
<blockquote cite="mid:519E2A65.1000505@tor.nl" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Thank you, and bleehhh...<br>
<br>
Perhaps we should do the stripslashes ONLY when magic_quotes are
enabled.<br>
<br>
I'll play around with it.<br>
<br>
Tom<br>
<br>
<div class="moz-cite-prefix">Op 23-5-2013 16:19, Dave Burnett
schreef:<br>
</div>
<blockquote cite="mid:BLU153-W2FAC35DDAA35DFA845082A7AA0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><a moz-do-not-send="true"
href="http://lists.nottingham.ac.uk/pipermail/xerte/2013-January/015328.html">http://lists.nottingham.ac.uk/pipermail/xerte/2013-January/015328.html</a>
<div><br>
</div>
<div><br>
<br>
<div>> Date: Thu, 23 May 2013 16:05:03 +0200<br>
> From: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:reijnders@tor.nl">reijnders@tor.nl</a><br>
> To: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a><br>
> Subject: [Xerte-dev] stripslashes (and LaTeX)<br>
> <br>
> Does someone know why we use stripslashes in
modules/xerte/engine/save.php?<br>
> <br>
> This causes the problems we have with LaTeX (and also
when trying to <br>
> escape other characters).<br>
> <br>
> As far as SVN is concerned this has always been in
there, but I wonder why.<br>
> <br>
> If I remove the stripslahes, LaTeX behaves much
better. (Also in MathJax)<br>
> <br>
> Tom<br>
> <br>
> -- <br>
> --<br>
> <br>
> Tom Reijnders<br>
> TOR Informatica<br>
> Chopinlaan 27<br>
> 5242HM Rosmalen<br>
> Tel: 073 5226191<br>
> Fax: 073 5226196<br>
> <br>
> <br>
> _______________________________________________<br>
> Xerte-dev mailing list<br>
> <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
> <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
> This message and any attachment are intended solely
for the addressee and may contain confidential
information. If you have received this message in error,
please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views
or opinions expressed by the author of this email do not
necessarily reflect the views of the University of
Nottingham.<br>
> <br>
> This message has been checked for viruses but the
contents of an attachment<br>
> may still contain software viruses which could damage
your computer system, you are advised to perform your own
checks. Email communications with the University of
Nottingham may be monitored as permitted by UK
legislation.<br>
> <br>
> <br>
> <br>
> <br>
</div>
</div>
</div>
<br>
<p>This message and any attachment are intended solely for the
addressee and may contain confidential information. If you
have received this message in error, please send it back to
me, and immediately delete it. Please do not use, copy or
disclose the information contained in this message or in any
attachment. Any views or opinions expressed by the author of
this email do not necessarily reflect the views of the
University of Nottingham.</p>
<p>This message has been checked for viruses but the contents of
an attachment may still contain software viruses which could
damage your computer system, you are advised to perform your
own checks. Email communications with the University of
Nottingham may be monitored as permitted by UK legislation.</p>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xerte-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
</pre>
<br>
<p>This message and any attachment are intended solely for the
addressee and may contain confidential information. If you have
received this message in error, please send it back to me, and
immediately delete it. Please do not use, copy or disclose the
information contained in this message or in any attachment. Any
views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham.</p>
<p>This message has been checked for viruses but the contents of
an attachment may still contain software viruses which could
damage your computer system, you are advised to perform your own
checks. Email communications with the University of Nottingham
may be monitored as permitted by UK legislation.</p>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xerte-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
</pre>
</body>
</html>