cvs: phpweb /include prepend.inc

From: Date: Thu, 26 Mar 2009 22:41:08 +0000
Subject: cvs: phpweb /include prepend.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4203@lists.php.net to get a copy of this message
philip Thu Mar 26 22:41:08 2009 UTC Modified files: /phpweb/include prepend.inc Log: Alter MQ code, and added "TODO: Remove MQ dependencies from phpweb" http://cvs.php.net/viewvc.cgi/phpweb/include/prepend.inc?r1=1.40&r2=1.41&diff_format=u Index: phpweb/include/prepend.inc diff -u phpweb/include/prepend.inc:1.40 phpweb/include/prepend.inc:1.41 --- phpweb/include/prepend.inc:1.40 Fri Jan 30 11:45:54 2009 +++ phpweb/include/prepend.inc Thu Mar 26 22:41:08 2009 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: prepend.inc,v 1.40 2009/01/30 11:45:54 bjori Exp $ +// $Id: prepend.inc,v 1.41 2009/03/26 22:41:08 philip Exp $ // See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 // for cache control header descriptions (used in many places on the site). @@ -28,14 +28,10 @@ // Load the My PHP.net settings before any includes myphpnet_load(); -// Put the magic quotes setting to $MQ -if (function_exists("get_magic_quotes_gpc")) { - $MQ = (boolean) @get_magic_quotes_gpc(); - - // Turn off runtime magic quoting +// TODO: Remove MQ dependencies from phpweb +$MQ = get_magic_quotes_gpc(); +if (get_magic_quotes_runtime()) { @set_magic_quotes_runtime(0); -} else { - $MQ = false; } // Check for APC support

« previous php.webmaster (#4203) next »