From 6550ed8594db63b4b2a96f41f2718ed2bc87b856 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 11 Sep 2003 05:35:51 +0000 Subject: [PATCH] updated documentation and make it working correctly --- redirect.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/redirect.php b/redirect.php index 63b85a7c28..3d9bb40edb 100644 --- a/redirect.php +++ b/redirect.php @@ -1,9 +1,9 @@ * * doing and adding to cvs: Lars Kneschke * - * http://www.phpgroupware.org * + * http://www.egroupware.org * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * @@ -13,9 +13,18 @@ /* $Id$ */ - if ($GLOBALS['go']) + /* + Use this script when you want to link to a external url. + This way you don't send sonething like sessionid's as referer + + Use this in your app: + + "' + */ + + if ($_GET['go']) { - Header('Location: ' . $GLOBALS['go']); + Header('Location: ' . html_entity_decode(urldecode($_GET['go']))); exit; } else