summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Ice/Exception.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index 170d9084c12..b2844f75c05 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -13,6 +13,7 @@
#include <Ice/Network.h>
#include <Ice/Stream.h>
#include <Ice/IdentityUtil.h>
+#include <Ice/StringUtil.h>
#include <Ice/Plugin.h>
using namespace std;
@@ -136,10 +137,7 @@ printFailedRequestData(ostream& out, const RequestFailedException& ex)
vector<string>::const_iterator p = ex.facet.begin();
while(p != ex.facet.end())
{
- //
- // TODO: Escape for whitespace and slashes.
- //
- out << *p++;
+ out << encodeString(*p++, "/");
if(p != ex.facet.end())
{
out << '/';