1
0

qt crash reporter: html.escape traceback to avoid formatting issues

fixes #6099
This commit is contained in:
SomberNight
2020-04-18 05:48:11 +02:00
parent b1d2389656
commit 8f4c384aad
2 changed files with 12 additions and 3 deletions

View File

@@ -121,9 +121,12 @@ class BaseCrashReporter(Logger):
['git', 'describe', '--always', '--dirty'], cwd=dir)
return str(version, "utf8").strip()
def _get_traceback_str(self) -> str:
return "".join(traceback.format_exception(*self.exc_args))
def get_report_string(self):
info = self.get_additional_info()
info["traceback"] = "".join(traceback.format_exception(*self.exc_args))
info["traceback"] = self._get_traceback_str()
return self.issue_template.format(**info)
def get_user_description(self):