mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 10:20:54 +00:00
Changed: Escape strings that will be in XML file
--HG-- branch : develop
This commit is contained in:
parent
f0d591bca7
commit
44ddae76b8
1 changed files with 3 additions and 3 deletions
|
@ -317,11 +317,11 @@ bool createShortcut(const QString &shortcut, const QString &name, const QString
|
||||||
|
|
||||||
CConfigFile *config = CConfigFile::getInstance();
|
CConfigFile *config = CConfigFile::getInstance();
|
||||||
|
|
||||||
|
// HTML escape values because they'll be in a XML file
|
||||||
strings.clear();
|
strings.clear();
|
||||||
strings["NAME"] = name;
|
strings["NAME"] = name.toHtmlEscaped();
|
||||||
strings["COPYRIGHT"] = config->getProductPublisher();
|
strings["COPYRIGHT"] = config->getProductPublisher().toHtmlEscaped();
|
||||||
strings["VERSION"] = QApplication::applicationVersion();
|
strings["VERSION"] = QApplication::applicationVersion();
|
||||||
strings["IDENTIFIER"] = "com.winchgate.Ryzom-" + nameToId(name);
|
|
||||||
|
|
||||||
// write Info.plist
|
// write Info.plist
|
||||||
if (!writeResourceWithTemplates(":/templates/Info.plist", plistFile, strings)) return false;
|
if (!writeResourceWithTemplates(":/templates/Info.plist", plistFile, strings)) return false;
|
||||||
|
|
Loading…
Reference in a new issue