Skip to content
Browse files
[Plugin Installer] More robust xml parsing: fix lonely ampersands. Fixes
  • Loading branch information
borysiasty committed Feb 18, 2014
1 parent 580f3dc commit 88e8f9d6b6f05cbda44eea2c4d925170e82342eb
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/pyplugin_installer/
@@ -393,7 +393,9 @@ def xmlDownloaded(self):
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.")
reposXML = QDomDocument()
content = reply.readAll()
# Fix lonely ampersands in metadata
reposXML.setContent(content.replace("& ", "& "))
pluginNodes = reposXML.elementsByTagName("pyqgis_plugin")
if pluginNodes.size():
for i in range(pluginNodes.size()):

0 comments on commit 88e8f9d

Please sign in to comment.