]> git.wh0rd.org Git - tt-rss.git/commitdiff
Respect 'proxy_all' during optional SSL whitelist rewrite
authorwn_ <invalid@email.com>
Sun, 23 Apr 2017 19:17:24 +0000 (14:17 -0500)
committerwn_ <invalid@email.com>
Sun, 23 Apr 2017 20:13:07 +0000 (15:13 -0500)
plugins/af_zz_imgproxy/init.php

index 8419b8a8747ca8221c92500d698f9db8dcb721f6..86f79c6946875bc4b142145b474d871a14903b09 100644 (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;
+                                               }
                                        }
                                }