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>
This commit is contained in:
Lukas Fleischer 2012-09-18 15:19:04 +02:00
parent 96c36dc84f
commit c959d95fb1

View file

@ -29,7 +29,7 @@
<div id="content"> <div id="content">
<div id="lang_sub"> <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> <fieldset>
<div> <div>
<select name="setlang" id="id_setlang"> <select name="setlang" id="id_setlang">