| |
@@ -20,6 +20,7 @@
|
| |
# Mike McLean <mikem@redhat.com>
|
| |
|
| |
import cgi
|
| |
+ import html
|
| |
import inspect
|
| |
import logging
|
| |
import os.path
|
| |
@@ -250,7 +251,7 @@
|
| |
if field.filename:
|
| |
val = field
|
| |
else:
|
| |
- val = field.value
|
| |
+ val = html.escape(field.value)
|
| |
data.setdefault(field.name, []).append(val)
|
| |
# replace singleton lists with single values
|
| |
# XXX - this is a bad practice, but for now we strive to emulate mod_python.publisher
|
| |
Currently, the fields in the query string are not sanitized for special characters; using
html.escape()
we can remove HTML tag characters to prevent them from making their way back out into the rendered template.