Skip to content

Commit ec48aff

Browse files
committed
changed built image urls to https
1 parent c8faa21 commit ec48aff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpFlickr.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ function buildPhotoURL ($photo, $size = "Medium") {
372372
}
373373

374374
if ($size == "original") {
375-
$url = "http://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['originalsecret'] . "_o" . "." . $photo['originalformat'];
375+
$url = "https://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['originalsecret'] . "_o" . "." . $photo['originalformat'];
376376
} else {
377-
$url = "http://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['secret'] . $sizes[$size] . ".jpg";
377+
$url = "https://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['secret'] . $sizes[$size] . ".jpg";
378378
}
379379
return $url;
380380
}

0 commit comments

Comments
 (0)