From 9ee2250e6380e77d9d53b25e63a5cb6b666f88f3 Mon Sep 17 00:00:00 2001 From: ElementAB Date: Wed, 24 Dec 2014 12:34:32 -0600 Subject: [PATCH] Fixed information box link generation Fixed issue where the information box would generate an incorrect link for the image source if the source was given as https:// instead of http://. --- themes/danbooru2/view.theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/danbooru2/view.theme.php b/themes/danbooru2/view.theme.php index 4c441352..10d1a3f5 100644 --- a/themes/danbooru2/view.theme.php +++ b/themes/danbooru2/view.theme.php @@ -39,7 +39,7 @@ class CustomViewImageTheme extends ViewImageTheme { if(!is_null($image->source)) { $h_source = html_escape($image->source); - if(substr($image->source, 0, 7) != "http://") { + if(substr($image->source, 0, 7) != "http://" && substr($image->source, 0, 8) != "https://") { $h_source = "http://" . $h_source; } $html .= "
Source: link";