From c1495982ab4e0d4e705eb3f1a751ef5104862df7 Mon Sep 17 00:00:00 2001 From: Dmitry Bakshaev Date: Sun, 30 Aug 2015 22:14:57 +0400 Subject: [PATCH] cookie authentication: fix cookie_iv length detection with mb_string overload Signed-off-by: Dmitry Bakshaev Signed-off-by: Marc Delisle --- libraries/plugins/auth/AuthenticationCookie.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/plugins/auth/AuthenticationCookie.class.php b/libraries/plugins/auth/AuthenticationCookie.class.php index 04b8638ffc..20966fb28b 100644 --- a/libraries/plugins/auth/AuthenticationCookie.class.php +++ b/libraries/plugins/auth/AuthenticationCookie.class.php @@ -793,7 +793,7 @@ class AuthenticationCookie extends AuthenticationPlugin true ); } - if (strlen($this->_cookie_iv) < $this->getIVSize()) { + if (mb_strlen($this->_cookie_iv,'8bit') < $this->getIVSize()) { $this->createIV(); }