From 9ee2250e6380e77d9d53b25e63a5cb6b666f88f3 Mon Sep 17 00:00:00 2001 From: ElementAB Date: Wed, 24 Dec 2014 12:34:32 -0600 Subject: [PATCH 1/3] 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"; From 3d17310581ff79e735c83b723242861e9055d2e9 Mon Sep 17 00:00:00 2001 From: ElementAB Date: Thu, 25 Dec 2014 01:36:18 -0600 Subject: [PATCH 2/3] 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"; From b555fab819f25d9913cada5f800045f1cba77d8f Mon Sep 17 00:00:00 2001 From: ElementAB Date: Thu, 25 Dec 2014 01:38:51 -0600 Subject: [PATCH 3/3] 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/lite/view.theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/lite/view.theme.php b/themes/lite/view.theme.php index b9e2db75..7c2bbf85 100644 --- a/themes/lite/view.theme.php +++ b/themes/lite/view.theme.php @@ -38,7 +38,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";