diff --git a/comments/sigplace1.comment b/comments/sigplace1.comment index ea80a93..471f55f 100644 --- a/comments/sigplace1.comment +++ b/comments/sigplace1.comment @@ -1,4 +1,4 @@ -79 +98 That is a great idea! username,17May2021 08:29:10;GREEN That is a great idea! <p>There used to be folks I worked with who would use the same technique, and it worked great!</p> @@ -151,3 +151,39 @@ fdsa 2022-08-03T18:55:29.796811Z[Etc/UTC];WHITE dsavsavdsavdsa%0A%0A%0Aefwqfewqfewq%20%F0%9F%91%8D 2022-08-03T18:57:35.135137Z[Etc/UTC];GREEN +well%20crud +2022-08-03T19:03:01.781701Z[Etc/UTC];GREEN +when%20there%20are%20too%20many%20comments%20it%20no%20longer%20works +2022-08-03T19:03:27.628422Z[Etc/UTC];GREEN +
            }\\NEWLINE\\            Path newf = Files.write(Paths.get(OUTDIR,key,DIRECTORYLISTING_FILENAME),sb.toString().getBytes());\\NEWLINE\\            System.out.println("  Added info for ("+map.size()+") files to "+newf.toAbsolutePath());\\NEWLINE\\        }\\NEWLINE\\    }\\NEWLINE\\    private static boolean isArticleFile(Path f) {\\NEWLINE\\        return f.getFileName().toString().contains(".article");\\NEWLINE\\    }\\NEWLINE\\    private static boolean isHTMLFile(Path f) {\\NEWLINE\\        return f.getFileName().toString().contains(".html");\\NEWLINE\\    }\\NEWLINE\
+2022-08-03T19:03:48.750287Z[Etc/UTC];GREEN +requestParams.get(%22message%22) +2022-08-03T19:05:00.093558Z[Etc/UTC];GREEN +%20%20%20%20%20%20%20%20%20%20%20%20Path%20file%20%3D%20Paths.get(%22sigServer.java%22)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20List<String%3E%20data%20%3D%20Files.readAllLines(file)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20int%20i%3D0%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20while%20(!data.get(i%2B%2B).contains(%22sigServer()%22)%26%26i<data.size())%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20(i<data.size())%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Files.write(Paths.get(OUTDIR%2C%22codeBackground%22)%2Cdata.subList(i%2C%20Math.min(i%2B40%2Cdata.size()))%2CCharset.defaultCharset()%2CStandardOpenOption.CREATE%2CStandardOpenOption.TRUNCATE_EXISTING%2CStandardOpenOption.WRITE)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%20catch%20(IOException%20e)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20e.printStackTrace()%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20 +2022-08-03T19:05:02.172964Z[Etc/UTC];GREEN +
            Path file = Paths.get("sigServer.java");\\NEWLINE\\            List&lt;String> data = Files.readAllLines(file);\\NEWLINE\\            int i=0;\\NEWLINE\\            while (!data.get(i++).contains("sigServer()")&&i&lt;data.size());\\NEWLINE\\            if (i&lt;data.size()) {\\NEWLINE\\                Files.write(Paths.get(OUTDIR,"codeBackground"),data.subList(i, Math.min(i+40,data.size())),Charset.defaultCharset(),StandardOpenOption.CREATE,StandardOpenOption.TRUNCATE_EXISTING,StandardOpenOption.WRITE);\\NEWLINE\\            }\\NEWLINE\\        } catch (IOException e) {\\NEWLINE\\            e.printStackTrace();\\NEWLINE\\        }\\NEWLINE\\       
+2022-08-03T19:05:08.199796Z[Etc/UTC];GREEN +
\\NEWLINE\\    }\\NEWLINE\\    private static boolean isHTMLFile(Path f) {\\NEWLINE\\        return f.getFileName().toString().contains(".html");\\NEWLINE\\    }\\NEWLINE\\    private static void ExportCodeFile() {\\NEWLINE\\        try {\\NEWLINE\\            Path file = Paths.get("sigServer.java");\\NEWLINE\\            List&lt;String> data = Files.readAllLines(file);\\NEWLINE\\            int i=0;\\NEWLINE\\            while (!data.get(i++).contains("sigServer()")&&i&lt;data.size());\\NEWLINE\\            if (i&lt;data.size()) {\\NEWLINE\\                Files.write(Paths.get(OUTDIR,"codeBackgroun
+2022-08-03T19:05:28.091289Z[Etc/UTC];GREEN +
                if (Files.isDirectory(destination)) {\\NEWLINE\\                    Files.createDirectories(destination);\\NEWLINE\\                } else {\\NEWLINE\\                    Files.copy(source, destination, new CopyOption[]{StandardCopyOption.COPY_ATTRIBUTES,StandardCopyOption.REPLACE_EXISTING});\\NEWLINE\\                }\\NEWLINE\\            } catch (IOException e) {\\NEWLINE\\  \\NEWLINE\\            sb.append("<div c\\NEWLINE\\3 May 2022 10:25A
+2022-08-03T19:06:54.198108Z[Etc/UTC];GREEN +
                String myKey = f.toAbsolutePath().toString().replace(startingPath,"").replace(f.getFileName().toString(),"");\\NEWLINE\\                
+2022-08-03T19:11:01.168522Z[Etc/UTC];GREEN +
         List&lt;String> data = Files.readAllLines(file);\\NEWLINE\\            int i=0;\\NEWLINE\\            while (!data.get(i++).contains("sigServer()")&&i&lt;data.size());\\NEWLINE\\            if (i&lt;data.size()) {\\NEWLINE\\                Files.write(Paths.
+2022-08-03T19:13:44.478200Z[Etc/UTC];GREEN +
            }\\NEWLINE\\            for (String d : data2) {\\NEWLINE\\                for (String k : sigPlace.map.keySet()) {\\NEWLINE\\                    d=d.replaceAll(Pattern.quote(k),sigPlace.map.get(k));\\NEWLINE\\                }\\NEWLINE\\                sb.append(d).append("\n");\\NEWLINE\\            }\\NEWLINE\\            Path newf = Files.write(Paths.get(OUTDIR,key,DIRECTORYLISTING_FILENAME),sb.toString().getBytes());\\NEWLINE\\            System.out.println("  Added info for ("+map.size()+") files to "+newf.toAbsolutePath());\\NEWLINE\\        }\\NEWLINE\\    }\\NEWLINE\\    private static boolean isArticleFile(Path f) {\\NEWLINE\\        return f.getFileName().toString().contains(".article");\\NEWLINE\\    }\\NEWLINE\\    private static boolean isHTMLFile(Path f) {\\NEWLINE\\        return f.getFileName().toString().contains(".html");\\NEWLINE\\    }\\NEWLINE\\    private static void ExportCodeFile() 
+2022-08-03T19:14:37.888355Z[Etc/UTC];GREEN + Path file = Paths.get("sigServer.java");\\NEWLINE\\ List<String> data = Files.readAllLines(file);\\NEWLINE\\ int i=0;\\NEWLINE\\ while (!data.get(i++).contains("sigServer()")&&i<data.size());\\NEWLINE\\ if (i<data.size()) {\\NEWLINE\\ Files.write(Paths.get(OUTDIR,"codeBackground"),data.subList(i, Math.min(i+40,data.size())),Charset.defaultCharset(),StandardOpenOption.CREATE,StandardOpenOption.TRUNCATE_EXISTING,StandardOpenOption.WRITE);\\NEWLINE\\ }\\NEWLINE\\ } catch (IOException e) {\\NEWLINE\\ e.printStackTrace() +2022-08-03T19:18:32.814373Z[Etc/UTC];GREEN +
            }\\NEWLINE\\            sb.append("<h2>Directory Listing for "+key+"</h2>");\\NEWLINE\\            sb.append("<div class=\"folderlisting\"><a href=\"")\\NEWLINE\\            .append(key)\\NEWLINE\\            .append("..\" class=\"icon\">📁</a><a href=\"")\\NEWLINE\\            .append(key)\\NEWLINE\\            .append("..\">.. </a><a href=\"")\\NEWLINE\\            .append(key)\\NEWLINE\\            .append("..\" class=\"nounderline\">(Previous Directory)</a></div>");\\NEWLINE\\            for (Path f : map.get(key)) {\\NEWLINE\\                sb.append("<div class=\"").append((Files.isDirectory(f)?"folderlisting":"filelisting")).append("\">")\\NEWLINE\\                .append("<a href=\""+(f.toAbsolutePath().toString().replace(Paths.get(OUTDIR).toAbsolutePath().toString(),""))+"\" class=\"icon\">")\\NEWLINE\\                .append((Files.isDirectory(f)?"📁":"🗎"))\\NEWLINE\\                .append("</a>")\\NEWLINE\\                .append("<a href=\""+(f.toAbsolutePath().toString().replace(Paths.get(OUTDIR).toAbsolutePath().toString(),""))+"\">")\\NEWLINE\\                .append(f.getFileName())\\NEWLINE\\                .append("</a>\t")\\NEWLINE\\                .append(Files.getLastModifiedTime(f))\\NEWLINE\\                .append("\t")\\NEWLINE\\                .append(Files.getOwner(f))\\NEWLINE\\                .append("\t")\\NEWLINE\\                .append(Files.size(f)
+2022-08-03T19:18:48.686982Z[Etc/UTC];GREEN +
                }\\NEWLINE\\            } catch (IOException e) {\\NEWLINE\\                e.printStackTrace();\\NEWLINE\\            }\\NEWLINE\\        }\\NEWLINE\\    }\\NEWLINE\\    private static void ConvertArticleReferences(Iterator<Path> items) {\\NEWLINE\\        while (items.hasNext()) {\\NEWLINE\\            Path f = items.next();\\NEWLINE\\            System.out.println(" Looking for Article References..."+f.getFileName());\\NEWLINE\\            boolean articleJavascriptIncluded=false;\\NEWLINE\\            if (Files.isRegularFile(f)&&isHTMLFile(f)) {                }\\NEWLINE\\            } catch (IOException e) {\\NEWLINE\\                e.printStackTrace();\\NEWLINE\\            }\\NEWLINE\\        }\\NEWLINE\\    }\\NEWLINE\\    private static void ConvertArticleReferences(Iterator<Path> items) {\\NEWLINE\\        while (items.hasNext()) {\\NEWLINE\\            Path f = items.next();\\NEWLINE\\            System.out.println(" Looking for Article References..."+f.getFileName());\\NEWLINE\\            boolean articleJavascriptIncluded=false;\\NEWLINE\\            if (Files.isRegularFile(f)&&isHTMLFile(f)) 
+2022-08-03T19:20:13.015061Z[Etc/UTC];GREEN +gna%2C%20sit%20amet%20finibus%20eros.%20In%20a%20nibh%20tincidunt%2C%20suscipit%20tellus%20eleifend%2C%20faucibus%20mauris.%20Vestibulum%20sagittis%20nisi%20et%20efficitur%20ullamcorper.%20Donec%20sodales%20efficitur%20ligula%20id%20congue.%20Etiam%20egestas%20tristique%20interdum.%20Mauris%20at%20massa%20eget%20metus%20pellentesque%20fermentum%20nec%20non%20lacus.%20Nulla%20turpis%20nunc%2C%20feugiat%20vel%20euismod%20ac%2C%20maximus%20id%20est.%20Praesent%20cursus%20elit%20ac%20dolor%20hendrerit%20lacinia. +2022-08-03T19:21:27.262008Z[Etc/UTC];GREEN +aucibus.%20Sed%20ac%20diam%20non%20lectus%20euismod%20pulvinar%20eu%20non%20mauris.%20Donec%20accumsan%20nisl%20efficitur%2C%20sodales%20lectus%20et%2C%20finibus%20quam.%20Sed%20vel%20consectetur%20leo.%20Cras%20ut%20condimentum%20quam.%20Aliquam%20molestie%20viverra%20congue.%20Donec%20scelerisque%20nibh%20ac%20nulla%20dictum%20semper.%20Aliquam%20id%20massa%20a%20massa%20bibendum%20finibus%20id%20ac%20sapien.%20Integer%20vitae%20ullamcorper%20enim%2C%20non%20semper%20massa.%0A%0A%0AProin%20cursus%20sodales%20elit%2C%20vitae%20volutpat%20mi%20fermentum%20a.%20In%20vitae%20magna%20quis%20leo%20cursus%20accumsan%20id%20facilisis%20purus.%20Vestibulum%20accumsan%20iaculis%20turpis%20eu%20sollicitudin.%20Sed%20ultricies%20felis%20non%20elit%20suscipit%20interdum.%20Maecenas%20sollicitudin%20turpis%20justo%2C%20vel%20pretium%20sapien%20scelerisque%20eget.%20Nullam%20sagittis%20finibus%20risus%20ut%20aliquam.%20Praesent%20quam%20orci%2C%20dapibus%20ut%20ex%20ac%2C%20sodales%20dapibus%20nunc.%0A%0A%0AFusce%20magna%20risus%2C%20iaculis%20non%20justo%20sit%20amet%2C%20semper%20sodales%20urna.%20Morbi%20eu%20eros%20lectus.%20Integer%20euismod%20venenatis%20eros%20a%20hendrerit.%20Nulla%20ultricies%20lectus%20nec%20quam%20condimentum%20fermentum.%20Quisque%20a%20turpis%20vitae%20orci%20pharetra%20ullamcorper.%20Nunc%20fringilla%20vitae%20nunc%20a%20aliquam.%20In%20aliquam%20gravida%20massa.%20Sed%20imperdiet%20dignissim%20sapien%2C%20ullamcorper%20rutrum%20lacus%20convallis%20ut.%0A%E2%9D%A4%EF%B8%8F%E2%9D%A4%EF%B8%8F%E2%9D%A4%EF%B8%8F +2022-08-03T19:22:26.325326Z[Etc/UTC];GREEN diff --git a/out/DIRECTORY_LISTING b/out/DIRECTORY_LISTING index c9e1ac9..9e70286 100644 --- a/out/DIRECTORY_LISTING +++ b/out/DIRECTORY_LISTING @@ -17,15 +17,15 @@
-

Directory Listing for /

📁articles 2022-08-03T18:57:16.515175Z gitpod 4096
-
🗎codeBackground 2022-08-03T18:57:16.411175Z gitpod 2635
-
🗎error.html 2022-08-03T18:57:16.439175Z gitpod 1674
-
📁images 2022-08-03T18:57:16.507175Z gitpod 77
-
🗎otherpage.html 2022-08-03T18:57:16.447175Z gitpod 88372
-
🗎reset.css 2022-08-03T18:57:16.419175Z gitpod 1092
-
🗎sig.css 2022-08-03T18:57:16.431175Z gitpod 10595
-
🗎testfile.html 2022-08-03T18:57:16.447175Z gitpod 1629
-
🗎uploadform.html 2022-08-03T18:57:16.447175Z gitpod 1709
+

Directory Listing for /

📁articles 2022-08-03T19:22:21.591014Z gitpod 4096
+
🗎codeBackground 2022-08-03T19:22:21.159014Z gitpod 2635
+
🗎error.html 2022-08-03T19:22:21.287014Z gitpod 1674
+
📁images 2022-08-03T19:22:21.587014Z gitpod 77
+
🗎otherpage.html 2022-08-03T19:22:21.379014Z gitpod 88372
+
🗎reset.css 2022-08-03T19:22:21.183014Z gitpod 1092
+
🗎sig.css 2022-08-03T19:22:21.203014Z gitpod 10595
+
🗎testfile.html 2022-08-03T19:22:21.379014Z gitpod 1629
+
🗎uploadform.html 2022-08-03T19:22:21.383014Z gitpod 1709
diff --git a/out/articles/DIRECTORY_LISTING b/out/articles/DIRECTORY_LISTING index 644feaf..edf7777 100644 --- a/out/articles/DIRECTORY_LISTING +++ b/out/articles/DIRECTORY_LISTING @@ -17,13 +17,13 @@
-

Directory Listing for /articles/

🗎Love Live! Custom Arcade Controller.article 2022-08-03T18:57:15.947175Z gitpod 497
-
🗎curabitur vel tempus ex.article 2022-08-03T18:57:15.971175Z gitpod 730
-
🗎sigplace1.article 2022-08-03T18:57:16.407175Z gitpod 80858
-
📁test articles 2022-08-03T18:57:16.499175Z gitpod 147
-
🗎Love Live! Custom Arcade Controller.article.html 2022-08-03T18:57:16.451175Z gitpod 10271
-
🗎curabitur vel tempus ex.article.html 2022-08-03T18:57:16.463175Z gitpod 10480
-
🗎sigplace1.article.html 2022-08-03T18:57:16.483175Z gitpod 90580
+

Directory Listing for /articles/

🗎Love Live! Custom Arcade Controller.article 2022-08-03T19:22:20.295014Z gitpod 497
+
🗎curabitur vel tempus ex.article 2022-08-03T19:22:20.387014Z gitpod 730
+
🗎sigplace1.article 2022-08-03T19:22:21.151014Z gitpod 80858
+
📁test articles 2022-08-03T19:22:21.495014Z gitpod 147
+
🗎Love Live! Custom Arcade Controller.article.html 2022-08-03T19:22:21.387014Z gitpod 10290
+
🗎curabitur vel tempus ex.article.html 2022-08-03T19:22:21.399014Z gitpod 10499
+
🗎sigplace1.article.html 2022-08-03T19:22:21.487014Z gitpod 90599
diff --git a/out/articles/Love Live! Custom Arcade Controller.article.html b/out/articles/Love Live! Custom Arcade Controller.article.html index 20b9164..2b18ca3 100644 --- a/out/articles/Love Live! Custom Arcade Controller.article.html +++ b/out/articles/Love Live! Custom Arcade Controller.article.html @@ -50,7 +50,7 @@ For over a year since I first got into Love Live! School Idol Festival ~after document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/out/articles/curabitur vel tempus ex.article.html b/out/articles/curabitur vel tempus ex.article.html index 9f074f8..de69b67 100644 --- a/out/articles/curabitur vel tempus ex.article.html +++ b/out/articles/curabitur vel tempus ex.article.html @@ -54,7 +54,7 @@ Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut. document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/out/articles/sigplace1.article.html b/out/articles/sigplace1.article.html index c33c74a..44abe8d 100644 --- a/out/articles/sigplace1.article.html +++ b/out/articles/sigplace1.article.html @@ -529,7 +529,7 @@ Here we demonstrate the love live logo. But wait, it's literally like in the mid document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/out/articles/test articles/DIRECTORY_LISTING b/out/articles/test articles/DIRECTORY_LISTING index 4e8d250..b39eaa5 100644 --- a/out/articles/test articles/DIRECTORY_LISTING +++ b/out/articles/test articles/DIRECTORY_LISTING @@ -17,12 +17,12 @@
-

Directory Listing for /articles/test articles/

🗎test1.article 2022-08-03T18:57:16.407175Z gitpod 1085
-
🗎test2.article 2022-08-03T18:57:16.407175Z gitpod 781
-
🗎test3.article 2022-08-03T18:57:16.411175Z gitpod 994
-
🗎test1.article.html 2022-08-03T18:57:16.491175Z gitpod 10799
-
🗎test2.article.html 2022-08-03T18:57:16.495175Z gitpod 10495
-
🗎test3.article.html 2022-08-03T18:57:16.499175Z gitpod 10708
+

Directory Listing for /articles/test articles/

🗎test1.article 2022-08-03T19:22:21.155014Z gitpod 1085
+
🗎test2.article 2022-08-03T19:22:21.155014Z gitpod 781
+
🗎test3.article 2022-08-03T19:22:21.155014Z gitpod 994
+
🗎test1.article.html 2022-08-03T19:22:21.491014Z gitpod 10818
+
🗎test2.article.html 2022-08-03T19:22:21.495014Z gitpod 10514
+
🗎test3.article.html 2022-08-03T19:22:21.495014Z gitpod 10727
diff --git a/out/articles/test articles/test1.article.html b/out/articles/test articles/test1.article.html index 151f160..9b4b3cd 100644 --- a/out/articles/test articles/test1.article.html +++ b/out/articles/test articles/test1.article.html @@ -48,7 +48,7 @@ document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/out/articles/test articles/test2.article.html b/out/articles/test articles/test2.article.html index b7605f9..667df1f 100644 --- a/out/articles/test articles/test2.article.html +++ b/out/articles/test articles/test2.article.html @@ -48,7 +48,7 @@ document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/out/articles/test articles/test3.article.html b/out/articles/test articles/test3.article.html index 7a15660..5ae9855 100644 --- a/out/articles/test articles/test3.article.html +++ b/out/articles/test articles/test3.article.html @@ -48,7 +48,7 @@ document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/ref/COMMENT.html b/ref/COMMENT.html index 5c92d8f..f43b87c 100644 --- a/ref/COMMENT.html +++ b/ref/COMMENT.html @@ -4,7 +4,7 @@ document.getElementById("submit").style.borderColor=document.getElementById("msg").style.borderColor=document.getElementById("name").style.borderColor=document.getElementById("col").style.borderColor=document.getElementById("col").options[document.getElementById("col").selectedIndex].text } function submit() { - if (document.getElementById("msg").value.length>1000) { + if (document.getElementById("msg").value.replaceAll(" ","").length>1000) { alert("Your message is longer than 1000 characters!"); return; } diff --git a/sigServer.java b/sigServer.java index e0f32d9..dd5fef5 100644 --- a/sigServer.java +++ b/sigServer.java @@ -183,8 +183,8 @@ public class sigServer { } if (location.equals("COMMENTS")&&requestParams.containsKey("message")&&requestParams.containsKey("name")&&requestParams.containsKey("color")) { //System.out.println(requestParams); - String finalMsg = requestParams.get("message").replaceAll(Pattern.quote("%3C"),"<"); - if (finalMsg.length()>0&&finalMsg.length()<=1000&& + String finalMsg = requestParams.get("message").replaceAll(Pattern.quote("%3C"),"<"); + if (finalMsg.length()>0&&URLDecoder.decode(requestParams.get("message"),StandardCharsets.UTF_8).replaceAll(Pattern.quote(" "),"").length()<=1000&& (requestParams.get("color").equals("BLUE")|| requestParams.get("color").equals("RED")|| requestParams.get("color").equals("GREEN")|| @@ -396,6 +396,10 @@ public class sigServer { i+=1; continue; } + if (finalMsg.charAt(i)=='<') { + buildMsg.append("<"); + continue; + } buildMsg.append(finalMsg.charAt(i)); } if (Files.exists(Paths.get(sigPlace.COMMENTSDIR,requestParams.get("article")))) {