Skip to content
......@@ -6,6 +6,7 @@
import os
import re
import cgi
import sys
import cgitb
import subprocess
cgitb.enable()
......@@ -18,6 +19,7 @@ class ValidationError(Exception):
print('Content-Type: text/html; charset="utf-8"')
print()
print(message)
sys.exit()
def sanify_field(field_name, field_text):
......@@ -129,8 +131,8 @@ else:
print()
cgitb.handler()
# Debug info, to be removed once ready to go.
print()
print('WARNING: This endpoint is still a WORK IN PROGRESS. This means that the option details can change, and it will not commit any change.')
print('User: {}'.format(user))
print(form)
print('You are aunthenticated as: {}'.format(user))
print(cgi.FieldStorage())