From 41ad75a9250e6ab0802c8d897f0ceb8a8a2ac3eb Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Thu, 12 Sep 2019 16:15:18 +0300 Subject: [PATCH] [processing] be safe when reading YAML (fix #30779) --- python/plugins/processing/algs/help/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/algs/help/__init__.py b/python/plugins/processing/algs/help/__init__.py index b2d5a861ae6d..59f750117c13 100644 --- a/python/plugins/processing/algs/help/__init__.py +++ b/python/plugins/processing/algs/help/__init__.py @@ -43,7 +43,7 @@ def loadShortHelp(): with codecs.open(filename, encoding='utf-8') as stream: with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) - for k, v in yaml.load(stream).items(): + for k, v in yaml.load(stream, Loader=yaml.SafeLoader).items(): if v is None: continue h[k] = QCoreApplication.translate("{}Algorithm".format(f[:-5].upper()), v)