diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-18 15:19:04 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-18 15:19:30 +0200 |
commit | c959d95fb1b247aa9fc9a76e891a8a91f728b57d (patch) | |
tree | 80a95fd47012d8d041f3c672f876069c11a7157a /web | |
parent | 96c36dc84f2dbce42e3af6453b7df916d07f0a39 (diff) | |
download | aurweb-c959d95fb1b247aa9fc9a76e891a8a91f728b57d.tar.xz |
Fix language selection
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@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r-- | web/template/header.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"> |