mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
53a31865f4
commit
a00e5b040a
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ elseif (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']))
|
||||||
else {
|
else {
|
||||||
?>
|
?>
|
||||||
<span class='error'>
|
<span class='error'>
|
||||||
<?php echo __("HTTP login is disabled. Please switch to HTTPs if you want to login: "); ?>
|
<?php printf(__("HTTP login is disabled. Please %sswitch to HTTPs%s if you want to login."),
|
||||||
<a href="https://aur.archlinux.org/">https://aur.archlinux.org/</a>
|
'<a href="https://aur.archlinux.org' . htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) . '">', '</a>'); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue