Permalink
Browse files

Merge pull request #17 from dbu/non-default-port

fix slides download from non-default port
  • Loading branch information...
2 parents 4226610 + ae0e82a commit 02b939952b67b6164ccd7f676dc7b8aa048aecd4 @Seldaek committed on GitHub Feb 25, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/index.php
View
@@ -181,7 +181,7 @@ function convertImage($url)
);
if (PHP_SAPI !== 'cli') {
- $baseUrl = ($_SERVER['SERVER_PORT'] === 443 ? 'https':'http') .'://'. $_SERVER['HTTP_HOST'].'/index.php';
+ $baseUrl = ($_SERVER['SERVER_PORT'] === 443 ? 'https':'http') .'://'. $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].'/index.php';
$parts = parse_url($baseUrl);
$imgUrl = $parts['scheme'].'://'.$parts['host'];
if ($url{0} !== '/') {

0 comments on commit 02b9399

Please sign in to comment.