From 131f1c5e1122f1b94c7bf4b39316c6f2594a9c29 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 29 Apr 2016 09:48:59 +0200 Subject: [PATCH] use strtok() instead of explode() since we only care about first element --- ykval-synclib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-synclib.php b/ykval-synclib.php index 2870ca6..2963ccb 100644 --- a/ykval-synclib.php +++ b/ykval-synclib.php @@ -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);