cookie authentication: fix cookie_iv length detection with mb_string overload

Signed-off-by: Dmitry Bakshaev <dab1818@gmail.com>
Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Dmitry Bakshaev 2015-08-30 22:14:57 +04:00 committed by Marc Delisle
parent 5916f3b8da
commit c1495982ab

View File

@ -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();
}