summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorwn_ <[email protected]>2017-04-23 14:17:24 -0500
committerwn_ <[email protected]>2017-04-23 15:13:07 -0500
commitc7360f4a54e9470fc36105f5a4289769ca402889 (patch)
tree9cf7047d79f4b33734cace8232c30b94ccc14f52 /plugins
parentf2fbb4ee7ef1c3cafefc7c78f57b685644996667 (diff)
Respect 'proxy_all' during optional SSL whitelist rewrite
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_zz_imgproxy/init.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php
index 8419b8a87..86f79c694 100644
--- a/plugins/af_zz_imgproxy/init.php
+++ b/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;
+ }
}
}