diff -NPur htdocs.orig/changeLang.py htdocs/changeLang.py
old
|
new
|
|
1 | 1 | import MaKaC.webinterface.rh.lang as lang |
| 2 | from MaKaC.common import Config |
2 | 3 | def index(req, **args): |
3 | | args['REFERER_URL'] = (str(req.headers_in['Referer'])) |
| 4 | args['REFERER_URL'] = (str(req.headers_in.get('Referer', Config.getInstance().getBaseURL()))) |
4 | 5 | return lang.RHChangeLang(req).process(args) |
5 | 6 | |
diff -NPur htdocs.orig/resetSessionTZ.py htdocs/resetSessionTZ.py
old
|
new
|
|
1 | 1 | import MaKaC.webinterface.rh.resetTimezone as resetTimezone |
| 2 | from MaKaC.common import Config |
2 | 3 | def index(req, **args): |
3 | | args['REFERER_URL'] = (str(req.headers_in['Referer'])) |
| 4 | args['REFERER_URL'] = (str(req.headers_in.get('Referer', Config.getInstance().getBaseURL()))) |
4 | 5 | return resetTimezone.RHResetTZ(req).process(args) |
5 | 6 | |