Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

replace deprecated function #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Yubico.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function verify($token, $use_timestamp=null, $wait_for_all=False,
/* Case 2. Verify signature first */
$rows = explode("\r\n", trim($str));
$response=array();
while (list($key, $val) = each($rows)) {
foreach((array)$rows as $val){
/* = 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 = explode("#", $val);
Expand Down