form was not defined

This commit is contained in:
Morten Delenk 2016-06-12 18:05:36 +02:00
parent 5263b05db1
commit 6aac5bb418

View file

@ -8,8 +8,8 @@ from io import BytesIO
from captcha.image import ImageCaptcha
import time
print("Content-type: text/html\r\n\r\n")
aid=form["aid"]
form=cgi.FieldStorage()
aid=form["aid"]
try:
seed=form["seed"]
random.seed(seed)