Skip to content

Commit 88e8f9d

Browse files
committed
[Plugin Installer] More robust xml parsing: fix lonely ampersands. Fixes #9524
1 parent 580f3dc commit 88e8f9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/pyplugin_installer/installer_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ def xmlDownloaded(self):
393393
self.mRepositories[reposName]["error"] += "\n\n" + QCoreApplication.translate("QgsPluginInstaller", "If you haven't cancelled the download manually, it was most likely caused by a timeout. In this case consider increasing the connection timeout value in QGIS options window.")
394394
else:
395395
reposXML = QDomDocument()
396-
reposXML.setContent(reply.readAll())
396+
content = reply.readAll()
397+
# Fix lonely ampersands in metadata
398+
reposXML.setContent(content.replace("& ", "& "))
397399
pluginNodes = reposXML.elementsByTagName("pyqgis_plugin")
398400
if pluginNodes.size():
399401
for i in range(pluginNodes.size()):

0 commit comments

Comments
 (0)