Ticket #12709: phpmailer-#12709.diff
| File phpmailer-#12709.diff, 861 bytes (added by j_schumann, 19 months ago) |
|---|
-
wp-includes/class-phpmailer.php
1467 1467 } 1468 1468 } 1469 1469 if (PHP_VERSION < 6) { 1470 $magic_quotes = get_magic_quotes_runtime();1471 set_magic_quotes_runtime(0);1470 $magic_quotes = ini_get('magic_quotes_runtime'); 1471 @ini_set('magic_quotes_runtime', 0); 1472 1472 } 1473 1473 $file_buffer = file_get_contents($path); 1474 1474 $file_buffer = $this->EncodeString($file_buffer, $encoding); 1475 if (PHP_VERSION < 6) { set_magic_quotes_runtime($magic_quotes); }1475 if (PHP_VERSION < 6) { @ini_set('magic_quotes_runtime', $magic_quotes); } 1476 1476 return $file_buffer; 1477 1477 } catch (Exception $e) { 1478 1478 $this->SetError($e->getMessage());