Merge branch 'virusdefender-dev' of git.coding.net:virusdefender/qduoj into dev-s

This commit is contained in:
sxw committed 2015-11-29 11:21:52 +08:00
commit 2b8203e119
7 files changed
+24 -6

No files matched your search

+2 -3
View File
@@ -62,10 +62,9 @@ def index_page(request):
if not request.user.is_authenticated():
return render(request, "oj/index.html")
try:
if request.META['HTTP_REFERER']:
if request.META.get('HTTP_REFERER') or request.GET.get("index"):
return render(request, "oj/index.html")
except KeyError:
else:
return http.HttpResponseRedirect('/problems/')