diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-08-26 07:47:44 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-09-05 16:47:57 +0200 |
commit | a00e5b040a42349e40a6d22cf822042ccf651be4 (patch) | |
tree | 713aa0fdaa6f84c21ee183586b2aba8b939b68b1 /web/template/login_form.php | |
parent | 53a31865f41db7315dc5c99e1b100f397ef80b1a (diff) | |
download | aur-a00e5b040a42349e40a6d22cf822042ccf651be4.tar.gz aur-a00e5b040a42349e40a6d22cf822042ccf651be4.tar.xz |
Link to current page in the login bar HTTPs link
This is way more convenient if you follow a HTTP link. Implements
FS#25757.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/login_form.php')
-rw-r--r-- | web/template/login_form.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/login_form.php b/web/template/login_form.php index b351a27e..969a371e 100644 --- a/web/template/login_form.php +++ b/web/template/login_form.php @@ -31,8 +31,8 @@ elseif (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) else { ?> <span class='error'> - <?php echo __("HTTP login is disabled. Please switch to HTTPs if you want to login: "); ?> - <a href="https://aur.archlinux.org/">https://aur.archlinux.org/</a> + <?php printf(__("HTTP login is disabled. Please %sswitch to HTTPs%s if you want to login."), + '<a href="https://aur.archlinux.org' . htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) . '">', '</a>'); ?> </span> <?php } ?> </div> |