Explorar o código

Respect 'proxy_all' during optional SSL whitelist rewrite

wn_ %!s(int64=7) %!d(string=hai) anos
pai
achega
c7360f4a54
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      plugins/af_zz_imgproxy/init.php

+ 6 - 2
plugins/af_zz_imgproxy/init.php

@@ -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;
+						}
 					}
 				}