This is way more convenient if you follow a HTTP link. Implements
FS#25757.

Signed-off-by: Lukas Fleischer <[email protected]>
---
 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 419e031..f12c5b6 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>
-- 
1.7.6.1

Reply via email to