also allow https sources

This commit is contained in:
Shish 2011-10-25 16:17:44 +01:00
parent 9361032cb6
commit 8cb95ceb98

View File

@ -94,7 +94,7 @@ class ViewImageTheme extends Themelet {
$html .= " ($h_ip)"; $html .= " ($h_ip)";
} }
if(!is_null($image->source)) { if(!is_null($image->source)) {
if(substr($image->source, 0, 7) == "http://") { if(substr($image->source, 0, 7) == "http://" || substr($image->source, 0, 8) == "https://") {
$html .= " (<a href='$h_source'>source</a>)"; $html .= " (<a href='$h_source'>source</a>)";
} }
else { else {