From 2aa0c6d00d926ccfaa3b7c04a5a11d4febfca5fe Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sun, 3 Jan 2016 06:49:35 +0100 Subject: [PATCH] Only proxy URLs using HTTP or HTTPS --- mod/proxy.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/proxy.php b/mod/proxy.php index c6bf653021..abcaf49127 100644 --- a/mod/proxy.php +++ b/mod/proxy.php @@ -238,6 +238,10 @@ function proxy_url($url, $writemode = false, $size = "") { $a = get_app(); + if (substr($url, 0, strlen('http')) !== 'http') { + return($url); + } + // Only continue if it isn't a local image and the isn't deactivated if (proxy_is_local_image($url)) { $url = str_replace(normalise_link($a->get_baseurl())."/", $a->get_baseurl()."/", $url);