dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
35dfed7
)
No need to store the value of the magic quotes check here; just use a local var for...
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 21 Aug 2009 21:26:34 +0000
(21:26 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 21 Aug 2009 21:26:34 +0000
(21:26 +0000)
includes/WebRequest.php
patch
|
blob
|
history
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
157f093
..
22057d4
100644
(file)
--- a/
includes/WebRequest.php
+++ b/
includes/WebRequest.php
@@
-44,7
+44,7
@@
if ( !function_exists( '__autoload' ) ) {
*/
class WebRequest {
protected $data, $headers = array();
*/
class WebRequest {
protected $data, $headers = array();
- private $_response
, $mFixMagicQuotes
;
+ private $_response;
public function __construct() {
/// @fixme This preemptive de-quoting can interfere with other web libraries
public function __construct() {
/// @fixme This preemptive de-quoting can interfere with other web libraries
@@
-179,8
+179,9
@@
class WebRequest {
* time could damage the values.
*/
private function checkMagicQuotes() {
* time could damage the values.
*/
private function checkMagicQuotes() {
- $this->mFixMagicQuotes = function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc();
- if( $this->mFixMagicQuotes ) {
+ $mustFixQuotes = function_exists( 'get_magic_quotes_gpc' )
+ && get_magic_quotes_gpc();
+ if( $mustFixQuotes ) {
$this->fix_magic_quotes( $_COOKIE );
$this->fix_magic_quotes( $_ENV );
$this->fix_magic_quotes( $_GET );
$this->fix_magic_quotes( $_COOKIE );
$this->fix_magic_quotes( $_ENV );
$this->fix_magic_quotes( $_GET );