cvs: pear /Cache_Lite Lite.php

From: Date: Mon, 11 Nov 2002 08:01:36 +0000
Subject: cvs: pear /Cache_Lite Lite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7356@lists.php.net to get a copy of this message
fab Mon Nov 11 03:01:36 2002 EDT Modified files: /pear/Cache_Lite Lite.php Log: fix magic_q issue (Thanks to Moshe Doron) Index: pear/Cache_Lite/Lite.php diff -u pear/Cache_Lite/Lite.php:1.1 pear/Cache_Lite/Lite.php:1.2 --- pear/Cache_Lite/Lite.php:1.1 Fri Sep 20 12:12:23 2002 +++ pear/Cache_Lite/Lite.php Mon Nov 11 03:01:35 2002 @@ -11,7 +11,7 @@ * Technical choices are described in the 'docs/technical' file * * @package Cache_Lite -* @version $Id: Lite.php,v 1.1 2002/09/20 16:12:23 sebastian Exp $ +* @version $Id: Lite.php,v 1.2 2002/11/11 08:01:35 fab Exp $ * @author Fabien MARTY <fab@php.net> */ @@ -334,11 +334,14 @@ if ($this->_fileLocking) @flock($fp, LOCK_SH); if ($fp) { $length = @filesize($this->_file); - if ($this->_readControl) { + $mqr = get_magic_quotes_runtime(); + set_magic_quotes_runtime(0); + if ($this->_readControl) { $hashControl = @fread($fp, 32); $length = $length - 32; } $data = @fread($fp, $length); + set_magic_quotes_runtime($mqr); if ($this->_fileLocking) @flock($fp, LOCK_UN); @fclose($fp); if ($this->_readControl) { @@ -417,4 +420,4 @@ } -?> \ No newline at end of file +?>

« previous php.pear.cvs (#7356) next »