summaryrefslogtreecommitdiffstats
path: root/PHPMailer-path.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-12-09 16:02:29 +0100
committerRemi Collet <fedora@famillecollet.com>2016-12-09 16:02:29 +0100
commitec66b4c1b91ea3e5b8945ed723301253285bbd06 (patch)
treeb389862dd539030b529ac4a4769b93d607b22309 /PHPMailer-path.patch
parent9b872d7b3447b0f927eb4a52c7f0b7c11a0a7c5b (diff)
php-PHPMailer: 5.2.17
Diffstat (limited to 'PHPMailer-path.patch')
-rw-r--r--PHPMailer-path.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/PHPMailer-path.patch b/PHPMailer-path.patch
index 4aac9e7..59a0ca5 100644
--- a/PHPMailer-path.patch
+++ b/PHPMailer-path.patch
@@ -1,7 +1,7 @@
diff -up ./class.phpmailer.php.rpm ./class.phpmailer.php
---- ./class.phpmailer.php.rpm 2014-09-25 18:36:22.000000000 +0200
-+++ ./class.phpmailer.php 2014-09-26 12:58:08.790951530 +0200
-@@ -1191,6 +1191,7 @@ class PHPMailer
+--- ./class.phpmailer.php.rpm 2016-12-09 11:03:48.000000000 +0100
++++ ./class.phpmailer.php 2016-12-09 15:03:58.489947280 +0100
+@@ -1475,6 +1475,7 @@ class PHPMailer
public function getSMTPInstance()
{
if (!is_object($this->smtp)) {
@@ -9,12 +9,12 @@ diff -up ./class.phpmailer.php.rpm ./class.phpmailer.php
$this->smtp = new SMTP;
}
return $this->smtp;
-@@ -1415,7 +1416,7 @@ class PHPMailer
+@@ -1730,7 +1731,7 @@ class PHPMailer
);
if (empty($lang_path)) {
// Calculate an absolute path so it can work if CWD is not here
- $lang_path = dirname(__FILE__). DIRECTORY_SEPARATOR . 'language'. DIRECTORY_SEPARATOR;
+ $lang_path = '/usr/share/PHPMailer/language/';
}
- $foundlang = true;
- $lang_file = $lang_path . 'phpmailer.lang-' . $langcode . '.php';
+ //Validate $langcode
+ if (!preg_match('/^[a-z]{2}(?:_[a-zA-Z]{2})?$/', $langcode)) {