Skip to content

Commit

Permalink
AURORA: Escape file path when using regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ImperatorPrime authored and DrMcCoy committed Apr 10, 2012
1 parent 2931d37 commit 58627e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aurora/resman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Common::UString ResourceManager::findArchive(const Common::UString &file,

Common::UString realName;
for (DirectoryList::const_iterator dir = dirs.begin(); dir != dirs.end(); ++dir) {
Common::UString escapedPath = Common::FilePath::normalize(*dir) + "/" + escapedFile;
Common::UString escapedPath = Common::FilePath::escapeStringLiteral(Common::FilePath::normalize(*dir)) + "/" + escapedFile;
if (!(realName = nameMatch.findFirst(escapedPath, true)).empty())
return realName;
}
Expand Down

0 comments on commit 58627e7

Please sign in to comment.