fixed invalid HTTP Location header (relative to absolute)

This commit is contained in:
Steffen Vogel 2010-12-25 23:53:21 +01:00
parent 0c5144d48e
commit 2664732fb3

View file

@ -24,6 +24,6 @@
* along with volkszaehler.org. If not, see <http://www.gnu.org/licenses/>.
*/
header('Location: frontend/');
header('Location: ' . ((isset($_SERVER['HTTPS'])) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . '/frontend/');
?>