fix: GitHub updater requests never follow redirects, whatever other plugins set
HTTP Requests Manager (blocking modes) sets every request's redirection to 1 on http_request_args. The updater's no-redirect requests then followed GitHub's redirect: signed_address() lost the Location, so private updates failed (and the token went to the download host), and fetch_web()'s HEAD on releases/latest got 200 instead of a redirect. remote_no_redirect() holds redirection at 0 for that one URL at PHP_INT_MAX. Updater copy 1.0.1 (the GH#261 change had not raised it).
This commit is contained in:
1 parent
a04e1d63b3
commit
51ccabc24e
3 files changed
+41
-14
No files matched your search
@@ -27,7 +27,7 @@ if (!isset($GLOBALS['wpallstars_github_updater']) || !is_array($GLOBALS['wpallst
|
||||
$GLOBALS['wpallstars_github_updater'] = array();
|
||||
}
|
||||
// Version of this copy => its class file.
|
||||
$GLOBALS['wpallstars_github_updater']['1.0.0'] = __DIR__ . '/class-wpallstars-github-updater.php';
|
||||
$GLOBALS['wpallstars_github_updater']['1.0.1'] = __DIR__ . '/class-wpallstars-github-updater.php';
|
||||
|
||||
if (!function_exists('wpallstars_github_updater_load')) {
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user