Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
3a394356
Commit
3a394356
authored
Jun 03, 2013
by
Kostas Papadimitriou
Browse files
astakos: Proper BASE_URL setting name
parent
7ccfdfb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/util.py
View file @
3a394356
...
...
@@ -303,7 +303,7 @@ def redirect_back(request, default='index'):
"""
referer
=
request
.
META
.
get
(
'HTTP_REFERER'
)
safedomain
=
settings
.
BASEURL
.
replace
(
"https://"
,
""
).
replace
(
safedomain
=
settings
.
BASE
_
URL
.
replace
(
"https://"
,
""
).
replace
(
"http://"
,
""
)
safe
=
restrict_next
(
referer
,
safedomain
)
# avoid redirect loop
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment