rt

An obligatory Java Project
Log | Files | Refs | LICENSE

commit 9421b99f96c4192441053882a263640bf72e4bd0
parent 3017c80348e3bcd54b25ff4f0be33f0060b03e3d
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Mon, 25 Nov 2019 17:28:17 +0100

Return false if cred format is wrong

Diffstat:
Mutil.java | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/util.java b/util.java @@ -25,6 +25,8 @@ public class util { public static boolean isValidCred(String s) { try { String[] a = s.split(" ", 2); + if (a.length < 2) + return false; } catch (PatternSyntaxException ex) { return false; }