Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Plugin Installer] More robust xml parsing: fix lonely ampersands. Fixes
  • Loading branch information
borysiasty committed Feb 18, 2014
1 parent 580f3dc commit 88e8f9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/pyplugin_installer/installer_data.py
Expand Up @@ -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.")
else:
reposXML = QDomDocument()
reposXML.setContent(reply.readAll())
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()):
Expand Down

0 comments on commit 88e8f9d

Please sign in to comment.