[Xerte] Re: 1. Re: Formulae and Latex - idiot's guide? (JulianTenney)

Paul Swanson Paul.Swanson at harlandfs.com
Thu Feb 9 15:56:05 GMT 2012


You could make stripslashes conditional on whether magic_quotes is
enabled:
 
function save_data ($data) {
    if (ini_get ('magic_quotes_gpc')) {
        $data = stripslashes ($data);
    }
    return $data;
}
    
Paul
 
 
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: Thursday, February 09, 2012 7:21 AM
To: Xerte discussion list
Subject: [Xerte] Re: 1. Re: Formulae and Latex - idiot's guide?
(JulianTenney)
 
there is a stripslashes in the save function in the php else the saved
file has \" for every "
without it when XOT opens it, it dies
 
On Thu, Feb 9, 2012 at 3:16 PM, Dave Burnett <d_b_burnett at hotmail.com
<mailto:d_b_burnett at hotmail.com> > wrote:
> 
> 
> But I think stripslashes() is independent of magic quotes.
> e.g. they just suggest checking the status of magic quotes so you
don't
> screw it up.
> 
> So regardless of magic quote settings, has a stripslashes() crept in
> somewhere?
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120209/f0edc505/attachment-0001.html>


More information about the Xerte mailing list