Added fix for bug #1455

Monotone-Parent: 95a335681530001430a12707d05dbed7839214fb
Monotone-Revision: 74e79fa391e19c2111663aba07a783fd4cdd19bd

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-07-23T13:50:14
This commit is contained in:
Ludovic Marcotte
2012-07-23 13:50:14 +00:00
parent 1d26a4b725
commit 8d4fa04746

View File

@@ -43,6 +43,10 @@ class CASProxyValidator:
def _runAsCGI(self):
if self._cgiChecks():
form = cgi.FieldStorage()
if form.list == []:
message = "Empty parameters : assuming cert. validation"
self._printCGIError(message, 200)
return
if form.has_key("pgtId") and form.has_key("pgtIou"):
pgtIou = form.getfirst("pgtIou")
pgtId = form.getfirst("pgtId")