name: Make sure empty name component (...) is not skipped during URI decoding
Change-Id: I85f96711b335573156c2c00722847d187ecf194c
Refs: #2725
diff --git a/src/name.cpp b/src/name.cpp
index c388064..b180ba6 100644
--- a/src/name.cpp
+++ b/src/name.cpp
@@ -162,11 +162,7 @@
if (iComponentEnd == std::string::npos)
iComponentEnd = uri.size();
- Component component = Component::fromEscapedString(&uri[0], iComponentStart, iComponentEnd);
- // Ignore illegal components. This also gets rid of a trailing '/'.
- if (!component.empty())
- append(Component(component));
-
+ append(Component::fromEscapedString(&uri[0], iComponentStart, iComponentEnd));
iComponentStart = iComponentEnd + 1;
}
}