]> git.mxchange.org Git - friendica.git/commitdiff
Only proxy URLs using HTTP or HTTPS
authorMatthew Exon <github.mexon@spamgourmet.com>
Sun, 3 Jan 2016 05:49:35 +0000 (06:49 +0100)
committerMatthew Exon <github.mexon@spamgourmet.com>
Mon, 25 Jan 2016 01:50:57 +0000 (02:50 +0100)
mod/proxy.php

index c6bf6530218c55085330211c252fbca9073feee4..abcaf4912798830546409ef6d16876bea9f3db96 100644 (file)
@@ -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);