summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-12-13 15:28:05 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-12-13 15:28:54 +0100
commit5ebf534ba7e90ccb12007c137ecea1cfcc4876da (patch)
tree7bee294ccb46e920288990d6fe1b2f6c46c2cd6f /web/template
parentaa2724bbfee4b2504a4e9d27e06037639c3bc3cc (diff)
downloadaurweb-5ebf534ba7e90ccb12007c137ecea1cfcc4876da.tar.xz
Avoid double slashes in notification email body
Refactor some of the URI generation code to avoid double slashes in absolute URIs. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 8bc3fd1..6167fb7 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -70,7 +70,7 @@
<?php else: ?>
<li><a href="<?= get_uri('/register/'); ?>"><?= __("Register"); ?></a></li>
<?php if (config_get_bool('options', 'disable_http_login') && empty($_SERVER['HTTPS'])): ?>
- <li><a href="<?= aur_location() . get_uri('/login/'); ?>"><?= __("Login"); ?></a></li>
+ <li><a href="<?= get_uri('/login/', true); ?>"><?= __("Login"); ?></a></li>
<?php else: ?>
<li><a href="<?= get_uri('/login/'); ?>"><?= __("Login"); ?></a></li>
<?php endif; ?>