summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-03 21:42:34 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-03 21:42:34 +0000
commit3c6a628ebd9699dcf760ed98df83c1a3c267bfb4 (patch)
tree90894e3b44067fdb1ed9fc9390997106de59a815 /src
parentde7eaf3296bc782c490223953a8225844581d911 (diff)
Some small fixes.
Diffstat (limited to 'src')
-rw-r--r--src/certificates.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/certificates.cc b/src/certificates.cc
index 621f44f2..ba0ebaae 100644
--- a/src/certificates.cc
+++ b/src/certificates.cc
@@ -46,7 +46,7 @@ Certificate::certificate () const
BIO_free (bio);
boost::replace_all (s, "-----BEGIN CERTIFICATE-----\n", "");
- boost::replace_all (s, "-----END CERTIFICATE-----\n", "");
+ boost::replace_all (s, "\n-----END CERTIFICATE-----\n", "");
return s;
}
@@ -72,7 +72,10 @@ Certificate::name_for_xml (string const & n)
x << *i << ",";
}
- return x.str().substr(0, x.str().length() - 2);
+ string s = x.str();
+ boost::replace_all (s, "+", "\\+");
+
+ return s.substr(0, s.length() - 2);
}
string