1. Jay Yu
  2. django-cas-provider

Commits

Chris Williams  committed cf9232f

Fixed an issue raised by realyze on github where CRLF was actually sent as LFCR.

  • Participants
  • Parent commits 326dd02
  • Branches master

Comments (0)

Files changed (1)

File cas_provider/views.py

View file
             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
-    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)
-    return render_to_response(template_name, {'url': url}, context_instance=RequestContext(request))
+    return render_to_response(template_name, {'url': url}, context_instance=RequestContext(request))