Commit 6e2cb1ba authored by michael.simon's avatar michael.simon
Browse files

not setting a size in split removes trailing string

parent 9faa8ba0
......@@ -115,7 +115,7 @@ public class HttpCallbackHook implements UserServiceHook {
if (entity != null) {
String r = EntityUtils.toString(entity);
if (r != null) {
String lines[] = r.split("\\r?\\n");
String lines[] = r.split("\\r?\\n", -1);
if (lines.length > 0) {
if (lines[0].matches(positiveMatchRegex)) {
user.getGenericStore().put("http_callback_positive_match", "" + System.currentTimeMillis());
......
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