escape HTML when showing errors (#828)

This commit is contained in:
Damien Elmes 2013-04-11 14:38:31 +09:00
parent a525d3c32c
commit 340ed59b15

View file

@ -4,6 +4,7 @@
from aqt.qt import *
import sys
import cgi
from aqt.utils import showText, showWarning
class ErrorHandler(QObject):
@ -43,7 +44,7 @@ class ErrorHandler(QObject):
self.timer.start()
def onTimeout(self):
error = self.pool
error = cgi.escape(self.pool)
self.pool = ""
self.mw.progress.clear()
if "abortSchemaMod" in error: