Ticket #12709: pclzip-#12709.diff
| File pclzip-#12709.diff, 1.5 KB (added by j_schumann, 18 months ago) |
|---|
-
wp-admin/includes/class-pclzip.php
5321 5321 { 5322 5322 $v_result=1; 5323 5323 5324 // ----- Look if function exists5325 if ( (!function_exists("get_magic_quotes_runtime"))5326 || (!function_exists("set_magic_quotes_runtime"))) {5327 return $v_result;5328 }5329 5330 5324 // ----- Look if already done 5331 5325 if ($this->magic_quotes_status != -1) { 5332 5326 return $v_result; 5333 5327 } 5334 5328 5335 5329 // ----- Get and memorize the magic_quote value 5336 $this->magic_quotes_status = @get_magic_quotes_runtime();5330 $this->magic_quotes_status = ini_get('magic_quotes_runtime'); 5337 5331 5338 5332 // ----- Disable magic_quotes 5339 5333 if ($this->magic_quotes_status == 1) { 5340 @ set_magic_quotes_runtime(0);5334 @ini_set('magic_quotes_runtime', 0); 5341 5335 } 5342 5336 5343 5337 // ----- Return … … 5355 5349 { 5356 5350 $v_result=1; 5357 5351 5358 // ----- Look if function exists5359 if ( (!function_exists("get_magic_quotes_runtime"))5360 || (!function_exists("set_magic_quotes_runtime"))) {5361 return $v_result;5362 }5363 5364 5352 // ----- Look if something to do 5365 5353 if ($this->magic_quotes_status != -1) { 5366 5354 return $v_result; … … 5368 5356 5369 5357 // ----- Swap back magic_quotes 5370 5358 if ($this->magic_quotes_status == 1) { 5371 @ set_magic_quotes_runtime($this->magic_quotes_status);5359 @ini_set('magic_quotes_runtime', $this->magic_quotes_status); 5372 5360 } 5373 5361 5374 5362 // ----- Return
