Author:   Lars Michelsen <[email protected]>
Date:     Fri Dec 20 18:34:04 2013 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Dec 20 18:34:04 2013 +0100

FIX: Encoding _origtarget URL parameter handed over to multisite now

---

 ChangeLog                                        |    1 +
 share/server/core/classes/CoreLogonMultisite.php |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0ba3492..91d9f93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 Core:
   * Processing Rotation/view/* permission when using Multisite authorisation
   * FIX: Fixed PHP error when using status hosts in backends
+  * FIX: Encoding _origtarget URL parameter handed over to multisite now
 
 1.8b1
 Core:
diff --git a/share/server/core/classes/CoreLogonMultisite.php 
b/share/server/core/classes/CoreLogonMultisite.php
index 62c93e2..bc44576 100644
--- a/share/server/core/classes/CoreLogonMultisite.php
+++ b/share/server/core/classes/CoreLogonMultisite.php
@@ -127,7 +127,7 @@ class CoreLogonMultisite extends CoreLogonModule {
             throw new NagVisException(l('LogonMultisite: Not authenticated.'));
         }
         // FIXME: Get the real path to multisite
-        header('Location:../../../check_mk/login.py?_origtarget=' . 
$_SERVER['REQUEST_URI']);
+        header('Location:../../../check_mk/login.py?_origtarget=' . 
urlencode($_SERVER['REQUEST_URI']));
     }
 
     public function check($printErr = true) {


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to