You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2018/06/11 20:54:40 UTC

[4/6] allura git commit: [#8202] Personal Dashboard - Checks whether the request.referer is null

[#8202] Personal Dashboard - Checks whether the request.referer is null


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/030a6881
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/030a6881
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/030a6881

Branch: refs/heads/master
Commit: 030a6881fcce2aa604bd57cad0770327ee166492
Parents: 26bae56
Author: deshanigtk <de...@cse.mrt.ac.lk>
Authored: Tue Jun 5 12:06:24 2018 +0530
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Mon Jun 11 16:44:41 2018 -0400

----------------------------------------------------------------------
 Allura/allura/controllers/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/030a6881/Allura/allura/controllers/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
index 2c5ff1a..053482e 100644
--- a/Allura/allura/controllers/auth.py
+++ b/Allura/allura/controllers/auth.py
@@ -118,7 +118,7 @@ class AuthController(BaseController):
         elif orig_request:
             return_to = orig_request.url
         else:
-            if request.referer.split('/')[-1] == 'neighborhood':
+            if request.referer is not None and request.referer.split('/')[-1] == 'neighborhood':
                 return_to = '/'
             else:
                 return_to = request.referer