1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Bug #2285: unescape only eats one backslash

(cherry picked from commit 59f9e09aac019c44bfa1a1d4da637b7a819cf4e0)
This commit is contained in:
Carlos Martín 2013-11-12 13:57:21 +01:00 committed by Ruben S. Montero
parent ef260045a1
commit e5cf19d154

View File

@ -165,9 +165,9 @@ array_val: VARIABLE EQUAL STRING
string& unescape (string &str)
{
size_t pos;
size_t pos = 0;
while ((pos = str.find("\\\"")) != string::npos)
while ((pos = str.find("\\\"", pos)) != string::npos)
{
str.replace(pos,2,"\"");
}