X-Git-Url: https://git.cweiske.de/indieauth-openid.git/blobdiff_plain/ae240c00d358bc82f09a0d86f6b924340572d425..63a168ff8f65c0eea3459aee32efc5e9be9cd5de:/www/about.php diff --git a/www/about.php b/www/about.php index 425b23a..c56b9aa 100644 --- a/www/about.php +++ b/www/about.php @@ -4,7 +4,10 @@ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) { } else { $prot = 'http'; } -$epUrl = $prot . '://' . $_SERVER['HTTP_HOST'] . '/'; +$epUrl = $prot . '://' . $_SERVER['HTTP_HOST'] . '/'; +if (Phar::running()) { + $epUrl .= ltrim($_SERVER['SCRIPT_NAME'], '/') . '/'; +} $hepUrl = htmlspecialchars($epUrl); ?>