[aur-dev] [PATCH 2/2] Fix language selection

Lukas Fleischer archlinux at cryptocrack.de
Tue Sep 18 09:34:13 EDT 2012


Use "REQUEST_URI" instead of the "PHP_SELF" sever variable to determine
the redirection URL for the language selection form. This fixes the
language selection feature to work well with virtual URLs.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/template/header.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/header.php b/web/template/header.php
index 2c04b58..d87ddfe 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -29,7 +29,7 @@
 
 		<div id="content">
 			<div id="lang_sub">
-				<form method="get" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES) ?>">
+				<form method="get" action="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"], ENT_QUOTES) ?>">
 					<fieldset>
 						<div>
 							<select name="setlang" id="id_setlang">
-- 
1.7.12



More information about the aur-dev mailing list