From f2fa425aac762a490dbbf2d8d208ba604f713fe4 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 16 Feb 2012 07:12:44 +0000 Subject: [PATCH] authYubiKey: Remove deprecated uses of split(). We should probably update this library to the latest version, but that must wait until we can test the changes. This should at least fix the deprecated-function warnings that PHP produces. Thanks to Thijs Kinkhorst for providing this patch. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3033 44740490-163a-0410-bde0-09ae8108e29a --- modules/authYubiKey/libextinc/Yubico.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/authYubiKey/libextinc/Yubico.php b/modules/authYubiKey/libextinc/Yubico.php index fbd667223..67e4374cf 100644 --- a/modules/authYubiKey/libextinc/Yubico.php +++ b/modules/authYubiKey/libextinc/Yubico.php @@ -137,11 +137,11 @@ class Auth_Yubico /* Verify signature. */ if($this->_key <> "") { - $rows = split("\r\n", $responseMsg); + $rows = explode("\r\n", $responseMsg); while (list($key, $val) = each($rows)) { // = is also used in BASE64 encoding so we only replace the first = by # which is not used in BASE64 $val = preg_replace('/=/', '#', $val, 1); - $row = split("#", $val); + $row = explode("#", $val); $response[$row[0]] = (isset($row[1])) ? $row[1] : ""; } -- GitLab