summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-09 19:44:50 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-09 19:51:30 (GMT)
commit1d5026df5c9ef2538b83973bb238c692cb5b84d6 (patch)
tree4c2d5fbe51de5f1889113c30a8d9b559aae60878
parent6b84fa40ba2f08548a4bcaa3cc8dbf0b8efc74f5 (diff)
downloadswift-contrib-1d5026df5c9ef2538b83973bb238c692cb5b84d6.zip
swift-contrib-1d5026df5c9ef2538b83973bb238c692cb5b84d6.tar.bz2
Fixed potential bug in DIGEST-MD5 quote handling.
-rw-r--r--Swiften/SASL/DIGESTMD5Properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/SASL/DIGESTMD5Properties.cpp b/Swiften/SASL/DIGESTMD5Properties.cpp
index d20f66e..571602b 100644
--- a/Swiften/SASL/DIGESTMD5Properties.cpp
+++ b/Swiften/SASL/DIGESTMD5Properties.cpp
@@ -17,7 +17,7 @@ namespace {
return v[0] == '"';
}
else if (v[0] == '"') {
- return !v[v.getSize() - 1] == '"';
+ return v[v.getSize() - 1] != '"';
}
else {
return false;