Skip to content

Commit

Permalink
Improve error message for cookie encryption
Browse files Browse the repository at this point in the history
- make it localized
- correctly report that it's about cookies

Issue #12924

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 25, 2017
1 parent e3709cf commit 31084a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/plugins/auth/AuthenticationCookie.php
Expand Up @@ -725,7 +725,10 @@ public function getAESSecret($secret)
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
);
}
}

Expand Down

0 comments on commit 31084a0

Please sign in to comment.