From 1392c8e61960d4d2f7df04051714d8ae659ceedf Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 27 Aug 2011 10:46:49 -0400 Subject: [PATCH] Typo - Wrong variable name. Should have run the tests first. --- src/util.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 8ec934b14..97019a17a 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -497,11 +497,11 @@ const std::string encode (const std::string& value) { std::string modified = value; - str_replace (value, "\t", "&tab;"); - str_replace (value, "\"", "&dquot;"); - str_replace (value, "[", "&open;"); - str_replace (value, "]", "&close;"); - str_replace (value, "\\", "\\\\"); + str_replace (modified, "\t", "&tab;"); + str_replace (modified, "\"", "&dquot;"); + str_replace (modified, "[", "&open;"); + str_replace (modified, "]", "&close;"); + str_replace (modified, "\\", "\\\\"); return modified; }