Respect 'proxy_all' during optional SSL whitelist rewrite

This commit is contained in:
wn_ 2017-04-23 14:17:24 -05:00
parent f2fbb4ee7e
commit c7360f4a54
1 changed files with 6 additions and 2 deletions

View File

@ -126,8 +126,12 @@ class Af_Zz_ImgProxy extends Plugin {
foreach (explode(" " , $this->ssl_known_whitelist) as $host) {
if (substr(strtolower($parts['host']), -strlen($host)) === strtolower($host)) {
$parts['scheme'] = 'https';
return build_url($parts);
$url = build_url($parts);
if ($all_remote && $is_remote) {
break;
} else {
return $url;
}
}
}