summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-22 08:17:09 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-22 08:17:09 (GMT)
commit7136ec8cee4e60c1923db8bf6ccb62c43d779497 (patch)
tree77bd402e6be8438317db01cd05c59ccc03ba922c /Swiften/JID/JID.cpp
parentdcda69b902744154d1e4ed67c89bde8bb6fdfcb9 (diff)
downloadswift-7136ec8cee4e60c1923db8bf6ccb62c43d779497.zip
swift-7136ec8cee4e60c1923db8bf6ccb62c43d779497.tar.bz2
Fixed bug in JID escaping.
Diffstat (limited to 'Swiften/JID/JID.cpp')
-rw-r--r--Swiften/JID/JID.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/JID/JID.cpp b/Swiften/JID/JID.cpp
index 7945cef..9fa0574 100644
--- a/Swiften/JID/JID.cpp
+++ b/Swiften/JID/JID.cpp
@@ -219,7 +219,7 @@ std::string JID::getEscapedNode(const std::string& node) {
else if (*i == '\\') {
// Check if we have an escaped dissalowed character sequence
std::string::const_iterator innerBegin = i + 1;
- if (innerBegin != result.end() && innerBegin + 1 != result.end()) {
+ if (innerBegin != node.end() && innerBegin + 1 != node.end()) {
std::string::const_iterator innerEnd = innerBegin + 2;
unsigned char value;
if (getEscapeSequenceValue(std::string(innerBegin, innerEnd), value)) {