CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <[EMAIL PROTECTED]>   05/08/24 21:21:55

Modified files:
        src/serialization: string_utils.cpp 

Log message:
        The escaping routine should also escape the = character.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/serialization/string_utils.cpp.diff?tr1=1.24&tr2=1.25&r1=text&r2=text

Patches:
Index: wesnoth/src/serialization/string_utils.cpp
diff -u wesnoth/src/serialization/string_utils.cpp:1.24 
wesnoth/src/serialization/string_utils.cpp:1.25
--- wesnoth/src/serialization/string_utils.cpp:1.24     Sun Jul 24 20:46:43 2005
+++ wesnoth/src/serialization/string_utils.cpp  Wed Aug 24 21:21:55 2005
@@ -1,4 +1,4 @@
-/* $Id: string_utils.cpp,v 1.24 2005/07/24 20:46:43 j_daniel Exp $ */
+/* $Id: string_utils.cpp,v 1.25 2005/08/24 21:21:55 gruikya Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
    Copyright (C) 2005 by Guillaume Melquiond <[EMAIL PROTECTED]>
@@ -235,12 +235,12 @@
 
 //prepend all special characters with a backslash
 //special characters are:
-//[EMAIL PROTECTED],\*
+//[EMAIL PROTECTED],\*=
 std::string &escape(std::string &str)
 {
        std::string::size_type pos = 0;
        do {
-               pos = str.find_first_of("[EMAIL PROTECTED],\\*", pos);
+               pos = str.find_first_of("[EMAIL PROTECTED],\\*=", pos);
                if (pos == std::string::npos)
                        break;
                str.insert(pos, 1, '\\');


Reply via email to