1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

use strtok() instead of explode() since we only care about first element

This commit is contained in:
Klas Lindfors 2016-04-29 09:48:59 +02:00
parent ec3f7788a0
commit 131f1c5e11

View File

@ -327,7 +327,7 @@ class SyncLib
while ($info = curl_multi_info_read($mh)) {
$handle = $info['handle'];
list($server) = explode("?", curl_getinfo($handle, CURLINFO_EFFECTIVE_URL));
$server = strtok(curl_getinfo($handle, CURLINFO_EFFECTIVE_URL), "?");
$entry = $entries[$server];
$this->log(LOG_DEBUG, "handle indicated to be for $server.");
curl_multi_remove_handle($mh, $handle);