From 44ddae76b852d672f652d74203ef9db52112ec6a Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 11 Oct 2016 17:42:46 +0200 Subject: [PATCH] Changed: Escape strings that will be in XML file --HG-- branch : develop --- code/ryzom/tools/client/ryzom_installer/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/utils.cpp b/code/ryzom/tools/client/ryzom_installer/src/utils.cpp index 9225285fc..e735862a0 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/utils.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/utils.cpp @@ -317,11 +317,11 @@ bool createShortcut(const QString &shortcut, const QString &name, const QString CConfigFile *config = CConfigFile::getInstance(); + // HTML escape values because they'll be in a XML file strings.clear(); - strings["NAME"] = name; - strings["COPYRIGHT"] = config->getProductPublisher(); + strings["NAME"] = name.toHtmlEscaped(); + strings["COPYRIGHT"] = config->getProductPublisher().toHtmlEscaped(); strings["VERSION"] = QApplication::applicationVersion(); - strings["IDENTIFIER"] = "com.winchgate.Ryzom-" + nameToId(name); // write Info.plist if (!writeResourceWithTemplates(":/templates/Info.plist", plistFile, strings)) return false;