aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-23 10:29:00 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-23 10:29:42 -0800
commitf24a0170bea7394bd11d9aa47bd189e11e92320d (patch)
tree315636577a35b87654c3ae590703ffb2fb03216c /history.cpp
parentfd56465931698f8d2edf3b0964b775e20c25358d (diff)
Fix for failing to unescape history properly, resulting in a backslash explosion
Diffstat (limited to 'history.cpp')
-rw-r--r--history.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/history.cpp b/history.cpp
index 74363a92..7b8bbf2d 100644
--- a/history.cpp
+++ b/history.cpp
@@ -287,6 +287,9 @@ static bool extract_prefix(std::string &key, std::string &value, const std::stri
if (val_start < line.size() && line.at(val_start) == ' ')
val_start++;
value = line.substr(val_start);
+
+ unescape_yaml(key);
+ unescape_yaml(value);
}
return where != std::string::npos;
}