Module: check_mk
Branch: master
Commit: 9f58dddc3e6f2a2b0e02df78b7f7a2bfa78c2b94
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9f58dddc3e6f2a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 5 09:26:28 2013 +0200
Fixed *completely* broken Multisite after restructuration
---
web/htdocs/index.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 97e6c4b..710f620 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -272,10 +272,10 @@ def handler(req, profiling = True):
# Redirect to the login-dialog with the current url as original target
# Never render the login form directly when accessing urls like
"index.py"
# or "dashboard.py". This results in strange problems.
- if req.myfile != 'login':
+ if html.myfile != 'login':
html.set_http_header('Location',
defaults.url_prefix + 'check_mk/login.py?_origtarget=%s'
%
- htmllib.urlencode(html.makeuri([])))
+ html.urlencode(html.makeuri([])))
raise apache.SERVER_RETURN, apache.HTTP_MOVED_TEMPORARILY
# Initialize the i18n for the login dialog. This might be overridden