Skip to content
Permalink
Browse files

use current protocol for embedded thumbnails (https fix)

  • Loading branch information...
following5 committed Dec 23, 2015
1 parent f2e95e4 commit a8bb637e47031b6da549212279dfb0585fec270e
Showing with 2 additions and 2 deletions.
  1. +2 −2 htdocs/thumbs.php
@@ -204,14 +204,14 @@
if ($debug == 1)
die($opt['logic']['pictures']['thumb_url'] . '/' . $filename);
else
$tpl->redirect($opt['logic']['pictures']['thumb_url'] . '/' . mb_substr($filename, 0, 1) . '/' . mb_substr($filename, 1, 1) . '/' . $filename);
$tpl->redirect(use_current_protocol($opt['logic']['pictures']['thumb_url'] . '/' . mb_substr($filename, 0, 1) . '/' . mb_substr($filename, 1, 1) . '/' . $filename));
}
else
{
if ($debug == 1)
die($r['thumb_url']);
else
$tpl->redirect($r['thumb_url']);
$tpl->redirect(use_current_protocol($r['thumb_url']));
}
}
else

0 comments on commit a8bb637

Please sign in to comment.
You can’t perform that action at this time.