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:
parent
ef260045a1
commit
e5cf19d154
@ -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,"\"");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user