projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7eaf3
)
Some small fixes.
author
Carl Hetherington
<cth@carlh.net>
Thu, 3 Jan 2013 21:42:34 +0000
(21:42 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 3 Jan 2013 21:42:34 +0000
(21:42 +0000)
src/certificates.cc
patch
|
blob
|
history
diff --git
a/src/certificates.cc
b/src/certificates.cc
index 621f44f22ff12a05ef166ed89057274a0d844d01..ba0ebaaeb48c9520977f90a662e097943ec27359 100644
(file)
--- 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