Author: Lars Michelsen <[email protected]>
Date: Tue Apr 12 17:42:20 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Tue Apr 12 17:42:20 2011 +0200
Changed redirect scripts to ignore hosts/ports/proto - just care about the
paths - should be more robust
---
share/config.php | 5 +----
share/index.php | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/share/config.php b/share/config.php
index 7410cef..e0c0d3d 100644
--- a/share/config.php
+++ b/share/config.php
@@ -22,8 +22,5 @@
*
*****************************************************************************/
-header("Location: ". ((isset($_SERVER["HTTPS"])) ? 'https://': 'http://') .
$_SERVER['HTTP_HOST']
- . ((isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80'
&& strpos($_SERVER['HTTP_HOST'], ':') === false) ? ':'.$_SERVER['SERVER_PORT']:
'')
- . rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
- . "/frontend/wui/index.php".(($_SERVER["QUERY_STRING"] != '') ?
'?':'').$_SERVER["QUERY_STRING"]);
+header("Location: " . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') .
"/frontend/wui/index.php".(($_SERVER["QUERY_STRING"] != '') ?
'?':'').$_SERVER["QUERY_STRING"]);
?>
diff --git a/share/index.php b/share/index.php
index f2e1767..05fae3a 100644
--- a/share/index.php
+++ b/share/index.php
@@ -22,8 +22,5 @@
*
*****************************************************************************/
-header("Location: ". ((isset($_SERVER["HTTPS"])) ? 'https://': 'http://') .
$_SERVER['HTTP_HOST']
- . ((isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80'
&& strpos($_SERVER['HTTP_HOST'], ':') === false) ? ':'.$_SERVER['SERVER_PORT']:
'')
- . rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
- . "/frontend/nagvis-js/index.php".(($_SERVER["QUERY_STRING"] != '') ?
'?':'').$_SERVER["QUERY_STRING"]);
+header("Location: ".rtrim(dirname($_SERVER['PHP_SELF']), '/\\') .
"/frontend/nagvis-js/index.php".(($_SERVER["QUERY_STRING"] != '') ?
'?':'').$_SERVER["QUERY_STRING"]);
?>
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins