mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 16:10:58 +00:00
Use approved safety comment for path escaping explanation
I thought I'd got this one already
This commit is contained in:
parent
90966ecc47
commit
dbdecfe94b
@ -147,8 +147,11 @@ bool Config::GameSettings::readFile(QTextStream& stream, QMultiMap<QString, QStr
|
||||
|| key == QLatin1String("load-savegame"))
|
||||
{
|
||||
// Path line (e.g. 'data=...'), so needs processing to deal with ampersands and quotes
|
||||
// The following is based on boost::io::detail::quoted_manip.hpp, but calling those functions did not
|
||||
// work as there are too may QStrings involved
|
||||
// The following is based on boost::io::detail::quoted_manip.hpp, but we don't actually use
|
||||
// boost::filesystem::path anymore, and use a custom class MaybeQuotedPath which uses Boost-like quoting
|
||||
// rules but internally stores as a std::filesystem::path.
|
||||
// Caution: This is intentional behaviour to duplicate how Boost and what we replaced it with worked,
|
||||
// and we rely on that.
|
||||
QChar delim = '\"';
|
||||
QChar escape = '&';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user