Commit 10c1cf8a authored by Bruno Dillenseger's avatar Bruno Dillenseger

Fix: discarding padding on base64 encode now supports the case where

there is actually no initial padding
parent 13b22d24
......@@ -314,7 +314,11 @@ public class SessionObject implements SessionObjectAction, DataProvider, TestAct
charset));
if (discardPadding)
{
b64.setLength(b64.indexOf("="));
int truncateIndex = b64.indexOf("=");
if (truncateIndex > -1)
{
b64.setLength(truncateIndex);
}
}
setValue(b64);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment