mirror of
https://github.com/friendica/friendica
synced 2024-12-24 14:00:15 +00:00
Merge pull request #2289 from mexon/mat/pullrequests
Only proxy URLs using HTTP or HTTPS
This commit is contained in:
commit
ab317b8e83
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue