Gam3Master Posted June 20, 2016 Author Posted June 20, 2016 + for (String listid : FORBIDDEN_NAMES.split(",")) + { + LIST_FORBIDDEN_NAMES.add(String.valueOf(listid)); + } listid is already a String, no need String.valueOf it. As always you are right :D fixed
Tryskell Posted June 20, 2016 Posted June 20, 2016 You're also allocating LIST_FORBIDDEN_NAMES twice, so put the List final to avoid such behavior. Use .clear() at worst if you want to clean it. Also you don't need FORBIDDEN_NAMES + for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(","))
AccessDenied Posted June 20, 2016 Posted June 20, 2016 You're also allocating LIST_FORBIDDEN_NAMES twice, so put the List final to avoid such behavior. Use .clear() at worst if you want to clean it. Also you don't need FORBIDDEN_NAMES + for (String listid : server.getProperty("RestrictedNames", "fuck,dildo,admin").split(",")) I love how you always help people but you eat their cookies in their kitchen :3
Elfo Posted June 20, 2016 Posted June 20, 2016 (edited) And this is why people don't share anymore. Ultimately you want implement a formula which will understand human eye letter similarities like I and l and then merge that with your current code. Also don't get values to lower. Use ignorecase. Edited June 20, 2016 by .Elfocrash
Ƭhυɴdεгѕqυαd Posted June 20, 2016 Posted June 20, 2016 And this is why people don't share anymore You are the reason that ppl stopped sql injection
Tryskell Posted June 20, 2016 Posted June 20, 2016 (edited) And this is why people don't share anymore. Ppl don't share because I fix and clean their dirtyness ? Or you reacted on the cookies part ? :P Edited June 20, 2016 by Tryskell
Elfo Posted June 20, 2016 Posted June 20, 2016 (edited) Ppl don't share because I fix and clean their dirtyness ? Or you reacted on the cookies part ? :PI wasn't referring to you mate. Just on the general situation. People learnt coding for low quality shares so the shares they now get to do are equally low. Suggestions are always welcome. Edited June 20, 2016 by .Elfocrash
Red-Hair-Shanks Posted June 20, 2016 Posted June 20, 2016 I wasn't referring to you mate. Just on the general situation. People learnt coding for low quality shares so the shares they now get to do are equally low. Suggestions are always welcome. ppl share on other forums my friend...so i think something is not going well with you ppl and mean modarators.
AbsolutePower Posted June 20, 2016 Posted June 20, 2016 enough! locked. Reason: Do not post simple java strings or stupid configuration codes. Such topics will be immediately locked Badly coded shares will be locked for the sake of java
Recommended Posts