From 31084a09f69a449c1775c0771d80afb6eb2275c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 25 Jan 2017 10:05:16 +0100 Subject: [PATCH] Improve error message for cookie encryption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - make it localized - correctly report that it's about cookies Issue #12924 Signed-off-by: Michal Čihař --- libraries/plugins/auth/AuthenticationCookie.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/auth/AuthenticationCookie.php b/libraries/plugins/auth/AuthenticationCookie.php index 06fe78f020..23eddc5f62 100644 --- a/libraries/plugins/auth/AuthenticationCookie.php +++ b/libraries/plugins/auth/AuthenticationCookie.php @@ -725,7 +725,10 @@ class AuthenticationCookie extends AuthenticationPlugin public function reportSSLErrors() { while (($ssl_err = openssl_error_string()) !== false) { - trigger_error('OpenSSL error: ' . $ssl_err, E_USER_ERROR); + trigger_error( + _('OpenSSL error when manipulating with cookies:') . ' ' . $ssl_err, + E_USER_ERROR + ); } }