diff options
Diffstat (limited to 'cgi/framework.py')
-rw-r--r-- | cgi/framework.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/framework.py b/cgi/framework.py index 1a2d78e..6056a30 100644 --- a/cgi/framework.py +++ b/cgi/framework.py @@ -296,7 +296,7 @@ class UserError(Exception): def secure_filename(path): split = re.compile(r'[\0%s]' % re.escape( ''.join([os.path.sep, os.path.altsep or '']))) - return cgi.escape(split.sub('', path)) + return html.escape(split.sub('', path)) def getMD5b(data): m = hashlib.md5() |