This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit 569dd8ed25e7637fa3a1d3b0cbcde8612572c523
Author: krzys-h <krzy...@interia.pl>
Date:   Sun Oct 26 20:43:51 2014 +0100

    Fixed regex in CResourceManager::CleanPath
---
 src/common/resources/resourcemanager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/resources/resourcemanager.cpp 
b/src/common/resources/resourcemanager.cpp
index b825374..475d71e 100644
--- a/src/common/resources/resourcemanager.cpp
+++ b/src/common/resources/resourcemanager.cpp
@@ -58,7 +58,7 @@ CResourceManager::~CResourceManager()
 
 std::string CResourceManager::CleanPath(const std::string& path)
 {
-    return boost::regex_replace(path, boost::regex("\\.\\./(.*)/"), "");
+    return boost::regex_replace(path, boost::regex("(.*)/\\.\\./"), "");
 }
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/colobot.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to