Commit 433d7707 authored by Bruno Dillenseger's avatar Bruno Dillenseger

[StringHandler] Fixed b64 padding removal

Case where the b64 encoding has no padding
parent de4e3c3b
Pipeline #7877 passed with stages
in 3 minutes and 11 seconds
......@@ -438,7 +438,11 @@ public class SessionObject implements SessionObjectAction, DataProvider, TestAct
charset));
if (discardPadding)
{
b64.setLength(b64.indexOf("="));
int paddingPos = b64.indexOf("=");
if (paddingPos > -1)
{
b64.setLength(paddingPos);
}
}
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