From 3d17310581ff79e735c83b723242861e9055d2e9 Mon Sep 17 00:00:00 2001 From: ElementAB Date: Thu, 25 Dec 2014 01:36:18 -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/danbooru/view.theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/danbooru/view.theme.php b/themes/danbooru/view.theme.php index 427d4f48..72164e6e 100644 --- a/themes/danbooru/view.theme.php +++ b/themes/danbooru/view.theme.php @@ -32,7 +32,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";