fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
326dd02
)
Fixed an issue raised by realyze on github where CRLF was actually sent as LFCR.
author
Chris Williams
<chris@nitron.org>
Wed, 2 Feb 2011 18:16:29 +0000
(13:16 -0500)
committer
Chris Williams
<chris@nitron.org>
Wed, 2 Feb 2011 18:16:29 +0000
(13:16 -0500)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
27c7f7a
..
9c820ce
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-59,12
+59,12
@@
def validate(request):
ticket = ServiceTicket.objects.get(ticket=ticket_string)
username = ticket.user.username
ticket.delete()
ticket = ServiceTicket.objects.get(ticket=ticket_string)
username = ticket.user.username
ticket.delete()
- return HttpResponse("yes\
n\r%s\n\r
" % username)
+ return HttpResponse("yes\
r\n%s\r\n
" % username)
except:
pass
except:
pass
- return HttpResponse("no\
n\r\n\r
")
+ return HttpResponse("no\
r\n\r\n
")
def logout(request, template_name='cas/logout.html'):
url = request.GET.get('url', None)
auth_logout(request)
def logout(request, template_name='cas/logout.html'):
url = request.GET.get('url', None)
auth_logout(request)
- return render_to_response(template_name, {'url': url}, context_instance=RequestContext(request))
\ No newline at end of file
+ return render_to_response(template_name, {'url': url}, context_instance=RequestContext(request))