You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \Exception('Could not do request to updater server: '.curl_error($curl));
}
curl_close($curl);
// Response can be empty when no update is available
if ($response === '') {
return [];
}
$xml = simplexml_load_string($response);
if ($xml === false) {
thrownew \Exception('Could not parse updater server XML response');
}
simplexml_load_string expects a well-formed xml document.
We should use curl_getinfo to check for the status code and the content type before parsing it.
The text was updated successfully, but these errors were encountered:
updater/lib/Updater.php
Lines 495 to 509 in e73aa39
simplexml_load_string
expects a well-formed xml document.We should use curl_getinfo to check for the status code and the content type before parsing it.
The text was updated successfully, but these errors were encountered: