summaryrefslogtreecommitdiff
path: root/odb/odb.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb.cxx')
-rw-r--r--odb/odb.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx
index e55328d..c3b8e58 100644
--- a/odb/odb.cxx
+++ b/odb/odb.cxx
@@ -800,6 +800,14 @@ encode_plugin_option (string const& k, string const& cv)
if (!v.empty ())
{
o += '=';
+
+ // A value cannot contain '='. Encode it as the backspace
+ // character.
+ //
+ for (size_t i (0); i < v.size (); ++i)
+ if (v[i] == '=')
+ v[i] = '\b';
+
o += v;
}