mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Google: Fix HTML escaping.
This commit is contained in:
parent
5edd174e38
commit
4692f831d4
@ -291,11 +291,6 @@ class Google(callbacks.PluginRegexp):
|
|||||||
.replace('\\', '\\\\')
|
.replace('\\', '\\\\')
|
||||||
js = simplejson.loads(js)
|
js = simplejson.loads(js)
|
||||||
|
|
||||||
if js['error'] == '':
|
|
||||||
irc.reply("%s = %s" % (js['lhs'].encode('utf8').decode('string_escape'),
|
|
||||||
js['rhs'].encode('utf8').decode('string_escape'),))
|
|
||||||
return
|
|
||||||
|
|
||||||
url = self._googleUrl(expr)
|
url = self._googleUrl(expr)
|
||||||
html = utils.web.getUrl(url)
|
html = utils.web.getUrl(url)
|
||||||
match = self._calcRe1.search(html)
|
match = self._calcRe1.search(html)
|
||||||
|
Loading…
Reference in New Issue
Block a user