validate: fix and add test

This commit is contained in:
mutantmonkey
2012-06-02 15:11:51 -07:00
parent 888854adb2
commit f84eb9061c
2 changed files with 32 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ def val(phenny, input):
if not uri.startswith('http://'):
uri = 'http://' + uri
path = '/check?uri=%s;output=xml' % web.urllib.quote(uri)
path = '/check?uri=%s;output=xml' % web.quote(uri)
info = web.head('http://validator.w3.org' + path)
result = uri + ' is '