summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-12-04 09:29:58 +0300
committerAndrew Dolgov <[email protected]>2015-12-04 09:29:58 +0300
commit1bd552ee319a8f8f69c45f03d2ed38424c51e114 (patch)
tree36c171a40f1a27e80cd0d7f675b94673290c253a /lib
parent9bd422c2e7bacf9cfa27b4fdd354d52025ea0f63 (diff)
compat patches for php7
Diffstat (limited to 'lib')
-rwxr-xr-x[-rw-r--r--]lib/phpmailer/class.phpmailer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/phpmailer/class.phpmailer.php b/lib/phpmailer/class.phpmailer.php
index 99c0d783a..9c286c9a1 100644..100755
--- a/lib/phpmailer/class.phpmailer.php
+++ b/lib/phpmailer/class.phpmailer.php
@@ -1853,23 +1853,23 @@ class PHPMailer {
// return false;
// }
// }
- $magic_quotes = get_magic_quotes_runtime();
+ /*$magic_quotes = get_magic_quotes_runtime();
if ($magic_quotes) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime(0);
} else {
ini_set('magic_quotes_runtime', 0);
}
- }
+ }*/
$file_buffer = file_get_contents($path);
$file_buffer = $this->EncodeString($file_buffer, $encoding);
- if ($magic_quotes) {
+ /*if ($magic_quotes) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime($magic_quotes);
} else {
ini_set('magic_quotes_runtime', $magic_quotes);
}
- }
+ }*/
return $file_buffer;
} catch (Exception $e) {
$this->SetError($e->getMessage());