8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5b07a commit c5d3bf4Copy full SHA for c5d3bf4
online_check/stdnum.wsgi
@@ -19,12 +19,12 @@
19
20
"""Simple WSGI application to check numbers."""
21
22
-import cgi
23
import inspect
24
import json
25
import os
26
import re
27
import sys
+import urllib.parse
28
29
30
sys.stdout = sys.stderr
@@ -97,7 +97,7 @@ def application(environ, start_response):
97
_template = to_unicode(open(os.path.join(basedir, 'template.html'), 'rt').read())
98
is_ajax = environ.get(
99
'HTTP_X_REQUESTED_WITH', '').lower() == 'xmlhttprequest'
100
- parameters = cgi.parse_qs(environ.get('QUERY_STRING', ''))
+ parameters = urllib.parse.parse_qs(environ.get('QUERY_STRING', ''))
101
results = []
102
number = ''
103
if 'number' in parameters:
0 commit comments