summaryrefslogtreecommitdiffstats
path: root/php-phpmailer6-layout.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-09-01 12:50:54 +0200
committerRemi Collet <remi@remirepo.net>2021-09-01 12:50:54 +0200
commitb56a13f814000bb563a7c96fc679cf95097d9e3b (patch)
tree54476c9701a58a9cc8705ff949eab72ba9c7ab05 /php-phpmailer6-layout.patch
parent1c07c09dcde66ac6383fb5a366ac220658d512aa (diff)
update to 6.5.1
Diffstat (limited to 'php-phpmailer6-layout.patch')
-rw-r--r--php-phpmailer6-layout.patch11
1 files changed, 5 insertions, 6 deletions
diff --git a/php-phpmailer6-layout.patch b/php-phpmailer6-layout.patch
index 8f254ec..b23da87 100644
--- a/php-phpmailer6-layout.patch
+++ b/php-phpmailer6-layout.patch
@@ -1,12 +1,11 @@
diff -up ./src/PHPMailer.php.rpm ./src/PHPMailer.php
---- ./src/PHPMailer.php.rpm 2021-02-24 09:34:44.854775099 +0100
-+++ ./src/PHPMailer.php 2021-02-24 09:35:04.783696615 +0100
-@@ -2215,7 +2215,7 @@ class PHPMailer
- ];
+--- ./src/PHPMailer.php.rpm 2021-09-01 12:46:30.267656729 +0200
++++ ./src/PHPMailer.php 2021-09-01 12:47:43.003485872 +0200
+@@ -2253,6 +2253,7 @@ class PHPMailer
if (empty($lang_path)) {
//Calculate an absolute path so it can work if CWD is not here
-- $lang_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR;
+ $lang_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR;
+ $lang_path = __DIR__ . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR;
}
+
//Validate $langcode
- if (!preg_match('/^[a-z]{2}(?:_[a-zA-Z]{2})?$/', $langcode)) {