[21042] Improvement: cleaner redirect 4746:4909

Sigurd Nes <[email protected]> Wed, 24 Feb 2010 21:52:40 +0000
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 21042
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21042
Author:   sigurdne
Date:     2010-02-24 21:52:40 +0000 (Wed, 24 Feb 2010)
Log Message:
-----------
Improvement: cleaner redirect 4746:4909

Modified Paths:
--------------
    people/sigurdne/core/trunk/redirect.php

Modified: people/sigurdne/core/trunk/redirect.php
===================================================================
--- people/sigurdne/core/trunk/redirect.php	2010-02-24 21:50:06 UTC (rev 21041)
+++ people/sigurdne/core/trunk/redirect.php	2010-02-24 21:52:40 UTC (rev 21042)
@@ -6,12 +6,13 @@
 	* @internal Idea by Jason Wies <[email protected]>
 	* @author Lars Kneschke <[email protected]>
 	* @author Dave Hall <[email protected]>
-	* @copyright Copyright (C) 2004-2005 Free Software Foundation, Inc. http://www.fsf.org/
+	* @copyright Copyright (C) 2004-2010 Free Software Foundation, Inc. http://www.fsf.org/
 	* @license http://www.gnu.org/licenses/gpl.html GNU General Public License
 	* @package phpgroupware
 	* @version $Id$
-	 */
+	*/
 
+
 	//Get the session variables set for non cookie based sessions
 	if ( !isset($_COOKIES['PHPSESSID']) 
 		|| isset($_COOKIES['sessionid']) ) 
@@ -51,6 +52,10 @@
 	if( isset($_GET['go']) )
 	{
 		$_GET['go'] = htmlspecialchars_decode(urldecode($_GET['go']));
+		Header("Location: {$_GET['go']}");
+		exit;
+
+/*
 		?>
 			<h2><?php echo lang('external link'); ?></h2>
 			<p><?php echo lang('lang you are about to visit an external site'); ?><br />
@@ -59,6 +64,7 @@
 			<script language="JavaScript" type="text/javascript">window.location="<?php echo$_GET['go']; ?>";</script>
 		<?php
 	        exit;
+*/
 	}
 	else
 	{