Browse Source

1.0?

master
RENOX 4 months ago
parent
commit
6bc3f16a6f
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/main/java/planetrenox/controller/RequestValidation.java

+ 5
- 5
src/main/java/planetrenox/controller/RequestValidation.java View File

@@ -27,7 +27,7 @@ public class RequestValidation
"CLEAN_NAME", ""
));

loginDocument.put("CLEAN_NAME", Jsoup.clean(name, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replaceAll("&", "&"));
loginDocument.put("CLEAN_NAME", Jsoup.clean(name, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replace("&", "&"));

if (name.length() > 60)
{
@@ -64,8 +64,8 @@ public class RequestValidation
"CLEAN_TEXT", ""
));

saveDocument.put("CLEAN_NAME", Jsoup.clean(name, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replaceAll("&", "&"));
saveDocument.put("CLEAN_TEXT", Jsoup.clean(text, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replaceAll("&", "&"));
saveDocument.put("CLEAN_NAME", Jsoup.clean(name, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replace("&", "&"));
saveDocument.put("CLEAN_TEXT", Jsoup.clean(text, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replace("&", "&"));

if (name.length() > 60)
{
@@ -106,8 +106,8 @@ public class RequestValidation
"CLEAN_TEXT", ""
));

saveDocument.put("CLEAN_NAME", Jsoup.clean(name, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replaceAll("&", "&"));
saveDocument.put("CLEAN_TEXT", Jsoup.clean(text, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replaceAll("&", "&"));
saveDocument.put("CLEAN_NAME", Jsoup.clean(name, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replace("&", "&"));
saveDocument.put("CLEAN_TEXT", Jsoup.clean(text, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false)).replace("&", "&"));


if (name.length() > 60)


Loading…
Cancel
Save