summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/StringCodecs/Base64.cpp')
-rw-r--r--Swiften/StringCodecs/Base64.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Swiften/StringCodecs/Base64.cpp b/Swiften/StringCodecs/Base64.cpp
index ec6f960..e1d70a0 100644
--- a/Swiften/StringCodecs/Base64.cpp
+++ b/Swiften/StringCodecs/Base64.cpp
@@ -70,11 +70,8 @@ SafeByteArray Base64::encode(const SafeByteArray& s) {
return encodeDetail<SafeByteArray>(s);
}
-ByteArray Base64::decode(const std::string& input1) {
+ByteArray Base64::decode(const std::string& input) {
ByteArray result;
- std::string input(input1);
- input.erase(std::remove(input.begin(), input.end(), '\n'), input.end());
- input.erase(std::remove(input.begin(), input.end(), '\r'), input.end());
if (input.size() % 4) {
return ByteArray();