[Xerte] Re: latex/stripslashes/magic quotes etc

David Goodwin david at palepurple.co.uk
Tue Jan 22 10:02:01 GMT 2013


Hi,

>  
> Also even if the difference was clearly down to magic_quotes_gpc on or off there's possibly going to be an issue for everyone given the deprecation etc?
>  
> David/Pat - given the purpose and function of save.php (e.g. writing the xml) would it be safe and a universal solution to do the following:
>  
> if(get_magic_quotes_gpc()) {
> if(fwrite($file_handle, stripslashes($_POST['filedata']))!=false){
> } else{
> if(fwrite($file_handle, $_POST['filedata'])!=false){
> }

Yes

David.


Pale Purple Ltd.  (Company No: 5580814)
'Web and Mobile Application Development for Business'

http://www.palepurple.co.uk   
Office: 0845 0046746     Mobile: 07792380669 

Follow us on Twitter: @PalePurpleLtd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20130122/3c7bbfe2/attachment-0001.html>


More information about the Xerte mailing list