Skip to content
Snippets Groups Projects
Commit f2fa425a authored by Olav Morken's avatar Olav Morken
Browse files

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
parent a65d6625
No related branches found
No related tags found
No related merge requests found
......@@ -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] : "";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment