Fix bugs relating to code containing < signs while regular text did as well. Also fixed issues with encoding/decoding limits

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago
parent 0e6099490a
commit 0c3adc6cab
  1. 38
      comments/sigplace1.comment
  2. 18
      out/DIRECTORY_LISTING
  3. 14
      out/articles/DIRECTORY_LISTING
  4. 2
      out/articles/Love Live! Custom Arcade Controller.article.html
  5. 2
      out/articles/curabitur vel tempus ex.article.html
  6. 2
      out/articles/sigplace1.article.html
  7. 12
      out/articles/test articles/DIRECTORY_LISTING
  8. 2
      out/articles/test articles/test1.article.html
  9. 2
      out/articles/test articles/test2.article.html
  10. 2
      out/articles/test articles/test3.article.html
  11. 2
      ref/COMMENT.html
  12. 8
      sigServer.java

@ -1,4 +1,4 @@
79
98
That is a great idea!
username,17May2021 08:29:10;GREEN
That is a great idea! &lt;p>There used to be folks I worked with who would use the same technique, and it worked great!&lt;/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
<pre> }\\NEWLINE\\ <span class="keyword">Path</span> <span class="keyword">newf</span> <span class="variable"></span>= <span class="class">Files</span>.<span class="function">write</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR,key,DIRECTORYLISTING_FILENAME),<span class="class">sb</span>.<span class="function">toString</span>().<span class="function">getBytes</span>());\\NEWLINE\\ <span class="class">System</span>.<span class="class">out</span>.<span class="function">println</span>(<span class="string">" Added info for ("</span>+<span class="class">map</span>.<span class="function">size</span>()+<span class="string">") files to "</span>+<span class="class">newf</span>.<span class="function">toAbsolutePath</span>());\\NEWLINE\\ }\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">boolean</span> <span class="function">isArticleFile</span>(<span class="keyword">Path</span> <span class="variable">f</span>) {\\NEWLINE\\ <span class="keyword">return</span> <span class="class">f</span>.<span class="function">getFileName</span>(<span class="variable"></span>).<span class="function">toString</span>().<span class="function">contains</span>(<span class="string">".article"</span>);\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">boolean</span> <span class="function">isHTMLFile</span>(<span class="keyword">Path</span> <span class="variable">f</span>) {\\NEWLINE\\ <span class="keyword">return</span> <span class="class">f</span>.<span class="function">getFileName</span>(<span class="variable"></span>).<span class="function">toString</span>().<span class="function">contains</span>(<span class="string">".html"</span>);\\NEWLINE\\ }\\NEWLINE\</pre>
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&lt;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&lt;data.size())%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20(i&lt;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
<pre> <span class="keyword">Path</span> <span class="keyword">file</span> <span class="variable"></span>= <span class="class">Paths</span>.<span class="function">get</span>(<span class="string">"sigServer.java"</span>);\\NEWLINE\\ List&<span class="keyword">lt</span>;String> <span class="keyword">data</span> <span class="variable"></span>= <span class="class">Files</span>.<span class="function">readAllLines</span>(file);\\NEWLINE\\ <span class="keyword">int</span> <span class="variable">i</span>=<span class="number">0</span>;\\NEWLINE\\ <span class="keyword">while</span> <span class="function"></span>(<span class="variable"></span>!<span class="class">data</span>.<span class="function">get</span>(i++).<span class="function">contains</span>(<span class="string">"sigServer()"</span>)&&i&<span class="keyword">lt</span>;<span class="class">data</span>.<span class="function">size</span>());\\NEWLINE\\ <span class="keyword">if</span> <span class="function"></span>(<span class="variable">i</span>&<span class="keyword">lt</span>;<span class="class">data</span>.<span class="function">size</span>()) {\\NEWLINE\\ <span class="class">Files</span>.<span class="function">write</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR,<span class="string">"codeBackground"</span>),<span class="class">data</span>.<span class="function">subList</span>(i, <span class="class">Math</span>.<span class="function">min</span>(i+<span class="number">40</span>,<span class="class">data</span>.<span class="function">size</span>())),<span class="class">Charset</span>.<span class="function">defaultCharset</span>(),<span class="class">StandardOpenOption</span>.CREATE,<span class="class">StandardOpenOption</span>.TRUNCATE_EXISTING,<span class="class">StandardOpenOption</span>.WRITE);\\NEWLINE\\ }\\NEWLINE\\ } <span class="keyword">catch</span> <span class="function"></span>(<span class="keyword">IOException</span> <span class="variable">e</span>) {\\NEWLINE\\ <span class="class">e</span>.<span class="function">printStackTrace</span>();\\NEWLINE\\ }\\NEWLINE\\ </pre>
2022-08-03T19:05:08.199796Z[Etc/UTC];GREEN
<pre>\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">boolean</span> <span class="function">isHTMLFile</span>(<span class="keyword">Path</span> <span class="variable">f</span>) {\\NEWLINE\\ <span class="keyword">return</span> <span class="class">f</span>.<span class="function">getFileName</span>(<span class="variable"></span>).<span class="function">toString</span>().<span class="function">contains</span>(<span class="string">".html"</span>);\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="function">ExportCodeFile</span>(<span class="variable"></span>) {\\NEWLINE\\ <span class="keyword">try</span> <span class="variable"></span>{\\NEWLINE\\ <span class="keyword">Path</span> <span class="keyword">file</span> <span class="variable"></span>= <span class="class">Paths</span>.<span class="function">get</span>(<span class="string">"sigServer.java"</span>);\\NEWLINE\\ List&<span class="keyword">lt</span>;String> <span class="keyword">data</span> <span class="variable"></span>= <span class="class">Files</span>.<span class="function">readAllLines</span>(file);\\NEWLINE\\ <span class="keyword">int</span> <span class="variable">i</span>=<span class="number">0</span>;\\NEWLINE\\ <span class="keyword">while</span> <span class="function"></span>(<span class="variable"></span>!<span class="class">data</span>.<span class="function">get</span>(i++).<span class="function">contains</span>(<span class="string">"sigServer()"</span>)&&i&<span class="keyword">lt</span>;<span class="class">data</span>.<span class="function">size</span>());\\NEWLINE\\ <span class="keyword">if</span> <span class="function"></span>(<span class="variable">i</span>&<span class="keyword">lt</span>;<span class="class">data</span>.<span class="function">size</span>()) {\\NEWLINE\\ <span class="class">Files</span>.<span class="function">write</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR,<span class="string">"codeBackgroun</pre>
2022-08-03T19:05:28.091289Z[Etc/UTC];GREEN
<pre> <span class="keyword">if</span> <span class="function"></span>(<span class="class">Files</span>.<span class="function">isDirectory</span>(<span class="variable">destination</span>)) {\\NEWLINE\\ <span class="class">Files</span>.<span class="function">createDirectories</span>(destination);\\NEWLINE\\ } <span class="keyword">else</span> <span class="variable"></span>{\\NEWLINE\\ <span class="class">Files</span>.<span class="function">copy</span>(source, destination, <span class="keyword">new</span> <span class="variable">CopyOption</span>[]{<span class="class">StandardCopyOption</span>.COPY_ATTRIBUTES,<span class="class">StandardCopyOption</span>.REPLACE_EXISTING});\\NEWLINE\\ }\\NEWLINE\\ } <span class="keyword">catch</span> <span class="function"></span>(<span class="keyword">IOException</span> <span class="variable">e</span>) {\\NEWLINE\\ \\NEWLINE\\ <span class="class">sb</span>.<span class="function">append</span>(<span class="string">"&lt;div c\\NEWLINE\\3 May 2022 10:25A</pre>
2022-08-03T19:06:54.198108Z[Etc/UTC];GREEN
<pre> <span class="keyword">String</span> <span class="keyword">myKey</span> <span class="variable"></span>= <span class="class">f</span>.<span class="function">toAbsolutePath</span>().<span class="function">toString</span>().<span class="function">replace</span>(startingPath,<span class="string">""</span>).<span class="function">replace</span>(<span class="class">f</span>.<span class="function">getFileName</span>().<span class="function">toString</span>(),<span class="string">""</span>);\\NEWLINE\\ </pre>
2022-08-03T19:11:01.168522Z[Etc/UTC];GREEN
<pre> List&<span class="keyword">lt</span>;String> <span class="keyword">data</span> <span class="variable"></span>= <span class="class">Files</span>.<span class="function">readAllLines</span>(file);\\NEWLINE\\ <span class="keyword">int</span> <span class="variable">i</span>=<span class="number">0</span>;\\NEWLINE\\ <span class="keyword">while</span> <span class="function"></span>(<span class="variable"></span>!<span class="class">data</span>.<span class="function">get</span>(i++).<span class="function">contains</span>(<span class="string">"sigServer()"</span>)&&i&<span class="keyword">lt</span>;<span class="class">data</span>.<span class="function">size</span>());\\NEWLINE\\ <span class="keyword">if</span> <span class="function"></span>(<span class="variable">i</span>&<span class="keyword">lt</span>;<span class="class">data</span>.<span class="function">size</span>()) {\\NEWLINE\\ <span class="class">Files</span>.<span class="function">write</span>(<span class="class">Paths</span>.</pre>
2022-08-03T19:13:44.478200Z[Etc/UTC];GREEN
<pre> }\\NEWLINE\\ <span class="keyword">for</span> <span class="function"></span>(<span class="keyword">String</span> <span class="keyword">d</span> <span class="variable"></span>: data2) {\\NEWLINE\\ <span class="keyword">for</span> <span class="function"></span>(<span class="keyword">String</span> <span class="keyword">k</span> <span class="variable"></span>: <span class="class">sigPlace</span>.<span class="class">map</span>.<span class="function">keySet</span>()) {\\NEWLINE\\ d=<span class="class">d</span>.<span class="function">replaceAll</span>(<span class="class">Pattern</span>.<span class="function">quote</span>(k),<span class="class">sigPlace</span>.<span class="class">map</span>.<span class="function">get</span>(k));\\NEWLINE\\ }\\NEWLINE\\ <span class="class">sb</span>.<span class="function">append</span>(d).<span class="function">append</span>(<span class="string">"\n"</span>);\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">Path</span> <span class="keyword">newf</span> <span class="variable"></span>= <span class="class">Files</span>.<span class="function">write</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR,key,DIRECTORYLISTING_FILENAME),<span class="class">sb</span>.<span class="function">toString</span>().<span class="function">getBytes</span>());\\NEWLINE\\ <span class="class">System</span>.<span class="class">out</span>.<span class="function">println</span>(<span class="string">" Added info for ("</span>+<span class="class">map</span>.<span class="function">size</span>()+<span class="string">") files to "</span>+<span class="class">newf</span>.<span class="function">toAbsolutePath</span>());\\NEWLINE\\ }\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">boolean</span> <span class="function">isArticleFile</span>(<span class="keyword">Path</span> <span class="variable">f</span>) {\\NEWLINE\\ <span class="keyword">return</span> <span class="class">f</span>.<span class="function">getFileName</span>(<span class="variable"></span>).<span class="function">toString</span>().<span class="function">contains</span>(<span class="string">".article"</span>);\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">boolean</span> <span class="function">isHTMLFile</span>(<span class="keyword">Path</span> <span class="variable">f</span>) {\\NEWLINE\\ <span class="keyword">return</span> <span class="class">f</span>.<span class="function">getFileName</span>(<span class="variable"></span>).<span class="function">toString</span>().<span class="function">contains</span>(<span class="string">".html"</span>);\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="function">ExportCodeFile</span>(<span class="variable"></span>) </pre>
2022-08-03T19:14:37.888355Z[Etc/UTC];GREEN
<teskgldjaskgldsa
2022-08-03T19:16:51.237755Z[Etc/UTC];GREEN
&lt;test
2022-08-03T19:18:17.262178Z[Etc/UTC];GREEN
<pre> <span class="keyword">Path</span> <span class="keyword">file</span> <span class="variable"></span>= <span class="class">Paths</span>.<span class="function">get</span>(<span class="string">"sigServer.java"</span>);\\NEWLINE\\ List&lt;String> <span class="keyword">data</span> <span class="variable"></span>= <span class="class">Files</span>.<span class="function">readAllLines</span>(file);\\NEWLINE\\ <span class="keyword">int</span> <span class="variable">i</span>=<span class="number">0</span>;\\NEWLINE\\ <span class="keyword">while</span> <span class="function"></span>(<span class="variable"></span>!<span class="class">data</span>.<span class="function">get</span>(i++).<span class="function">contains</span>(<span class="string">"sigServer()"</span>)&&i&lt;<span class="class">data</span>.<span class="function">size</span>());\\NEWLINE\\ <span class="keyword">if</span> <span class="function"></span>(<span class="variable">i</span>&lt;<span class="class">data</span>.<span class="function">size</span>()) {\\NEWLINE\\ <span class="class">Files</span>.<span class="function">write</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR,<span class="string">"codeBackground"</span>),<span class="class">data</span>.<span class="function">subList</span>(i, <span class="class">Math</span>.<span class="function">min</span>(i+<span class="number">40</span>,<span class="class">data</span>.<span class="function">size</span>())),<span class="class">Charset</span>.<span class="function">defaultCharset</span>(),<span class="class">StandardOpenOption</span>.CREATE,<span class="class">StandardOpenOption</span>.TRUNCATE_EXISTING,<span class="class">StandardOpenOption</span>.WRITE);\\NEWLINE\\ }\\NEWLINE\\ } <span class="keyword">catch</span> <span class="function"></span>(<span class="keyword">IOException</span> <span class="variable">e</span>) {\\NEWLINE\\ <span class="class">e</span>.<span class="function">printStackTrace</span>()</pre>
2022-08-03T19:18:32.814373Z[Etc/UTC];GREEN
<pre> }\\NEWLINE\\ <span class="class">sb</span>.<span class="function">append</span>(<span class="string">"&lt;h2>Directory Listing for "</span>+key+<span class="string">"&lt;/h2>"</span>);\\NEWLINE\\ <span class="class">sb</span>.<span class="function">append</span>(<span class="string">"&lt;div class=\"folderlisting\">&lt;a href=\""</span>)\\NEWLINE\\ .<span class="function">append</span>(key)\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"..\" class=\"icon\">📁&lt;/a>&lt;a href=\""</span>)\\NEWLINE\\ .<span class="function">append</span>(key)\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"..\">.. &lt;/a>&lt;a href=\""</span>)\\NEWLINE\\ .<span class="function">append</span>(key)\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"..\" class=\"nounderline\">(Previous Directory)&lt;/a>&lt;/div>"</span>);\\NEWLINE\\ <span class="keyword">for</span> <span class="function"></span>(<span class="keyword">Path</span> <span class="keyword">f</span> <span class="variable"></span>: <span class="class">map</span>.<span class="function">get</span>(key)) {\\NEWLINE\\ <span class="class">sb</span>.<span class="function">append</span>(<span class="string">"&lt;div class=\""</span>).<span class="function">append</span>(<span class="function"></span>(<span class="class">Files</span>.<span class="function">isDirectory</span>(f)?<span class="string">"folderlisting"</span>:<span class="string">"filelisting"</span>)).<span class="function">append</span>(<span class="string">"\">"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"&lt;a href=\""</span>+<span class="function"></span>(<span class="class">f</span>.<span class="function">toAbsolutePath</span>().<span class="function">toString</span>().<span class="function">replace</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR).<span class="function">toAbsolutePath</span>().<span class="function">toString</span>(),<span class="string">""</span>))+<span class="string">"\" class=\"icon\">"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="function"></span>(<span class="class">Files</span>.<span class="function">isDirectory</span>(f)?<span class="string">"📁"</span>:<span class="string">"🗎"</span>))\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"&lt;/a>"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"&lt;a href=\""</span>+<span class="function"></span>(<span class="class">f</span>.<span class="function">toAbsolutePath</span>().<span class="function">toString</span>().<span class="function">replace</span>(<span class="class">Paths</span>.<span class="function">get</span>(OUTDIR).<span class="function">toAbsolutePath</span>().<span class="function">toString</span>(),<span class="string">""</span>))+<span class="string">"\">"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="class">f</span>.<span class="function">getFileName</span>())\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"&lt;/a>\t"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="class">Files</span>.<span class="function">getLastModifiedTime</span>(f))\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"\t"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="class">Files</span>.<span class="function">getOwner</span>(f))\\NEWLINE\\ .<span class="function">append</span>(<span class="string">"\t"</span>)\\NEWLINE\\ .<span class="function">append</span>(<span class="class">Files</span>.<span class="function">size</span>(f)</pre>
2022-08-03T19:18:48.686982Z[Etc/UTC];GREEN
<pre> }\\NEWLINE\\ } <span class="keyword">catch</span> <span class="function"></span>(<span class="keyword">IOException</span> <span class="variable">e</span>) {\\NEWLINE\\ <span class="class">e</span>.<span class="function">printStackTrace</span>();\\NEWLINE\\ }\\NEWLINE\\ }\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="function">ConvertArticleReferences</span>(<span class="variable">Iterator</span>&lt;Path> items) {\\NEWLINE\\ <span class="keyword">while</span> <span class="function"></span>(<span class="class">items</span>.<span class="function">hasNext</span>(<span class="variable"></span>)) {\\NEWLINE\\ <span class="keyword">Path</span> <span class="keyword">f</span> <span class="variable"></span>= <span class="class">items</span>.<span class="function">next</span>();\\NEWLINE\\ <span class="class">System</span>.<span class="class">out</span>.<span class="function">println</span>(<span class="string">" Looking for Article References..."</span>+<span class="class">f</span>.<span class="function">getFileName</span>());\\NEWLINE\\ <span class="keyword">boolean</span> <span class="variable">articleJavascriptIncluded</span>=<span class="number">false</span><span class="keyword"></span>;\\NEWLINE\\ <span class="keyword">if</span> <span class="function"></span>(<span class="class">Files</span>.<span class="function">isRegularFile</span>(<span class="variable">f</span>)&&<span class="function">isHTMLFile</span>(f)) { }\\NEWLINE\\ } <span class="keyword">catch</span> <span class="function"></span>(<span class="keyword">IOException</span> <span class="variable">e</span>) {\\NEWLINE\\ <span class="class">e</span>.<span class="function">printStackTrace</span>();\\NEWLINE\\ }\\NEWLINE\\ }\\NEWLINE\\ }\\NEWLINE\\ <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="function">ConvertArticleReferences</span>(<span class="variable">Iterator</span>&lt;Path> items) {\\NEWLINE\\ <span class="keyword">while</span> <span class="function"></span>(<span class="class">items</span>.<span class="function">hasNext</span>(<span class="variable"></span>)) {\\NEWLINE\\ <span class="keyword">Path</span> <span class="keyword">f</span> <span class="variable"></span>= <span class="class">items</span>.<span class="function">next</span>();\\NEWLINE\\ <span class="class">System</span>.<span class="class">out</span>.<span class="function">println</span>(<span class="string">" Looking for Article References..."</span>+<span class="class">f</span>.<span class="function">getFileName</span>());\\NEWLINE\\ <span class="keyword">boolean</span> <span class="variable">articleJavascriptIncluded</span>=<span class="number">false</span><span class="keyword"></span>;\\NEWLINE\\ <span class="keyword">if</span> <span class="function"></span>(<span class="class">Files</span>.<span class="function">isRegularFile</span>(<span class="variable">f</span>)&&<span class="function">isHTMLFile</span>(f)) </pre>
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

@ -17,15 +17,15 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-08-03T18:57:16.515175Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-08-03T18:57:16.411175Z gitpod 2635</div>
<div class="filelisting"><a href="/error.html" class="icon">&#x1F5CE;</a><a href="/error.html">error.html</a> 2022-08-03T18:57:16.439175Z gitpod 1674</div>
<div class="folderlisting"><a href="/images" class="icon">&#x1F4C1;</a><a href="/images">images</a> 2022-08-03T18:57:16.507175Z gitpod 77</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-08-03T18:57:16.447175Z gitpod 88372</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-08-03T18:57:16.419175Z gitpod 1092</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-08-03T18:57:16.431175Z gitpod 10595</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-08-03T18:57:16.447175Z gitpod 1629</div>
<div class="filelisting"><a href="/uploadform.html" class="icon">&#x1F5CE;</a><a href="/uploadform.html">uploadform.html</a> 2022-08-03T18:57:16.447175Z gitpod 1709</div>
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-08-03T19:22:21.591014Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-08-03T19:22:21.159014Z gitpod 2635</div>
<div class="filelisting"><a href="/error.html" class="icon">&#x1F5CE;</a><a href="/error.html">error.html</a> 2022-08-03T19:22:21.287014Z gitpod 1674</div>
<div class="folderlisting"><a href="/images" class="icon">&#x1F4C1;</a><a href="/images">images</a> 2022-08-03T19:22:21.587014Z gitpod 77</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-08-03T19:22:21.379014Z gitpod 88372</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-08-03T19:22:21.183014Z gitpod 1092</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-08-03T19:22:21.203014Z gitpod 10595</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-08-03T19:22:21.379014Z gitpod 1629</div>
<div class="filelisting"><a href="/uploadform.html" class="icon">&#x1F5CE;</a><a href="/uploadform.html">uploadform.html</a> 2022-08-03T19:22:21.383014Z gitpod 1709</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -17,13 +17,13 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article">Love Live! Custom Arcade Controller.article</a> 2022-08-03T18:57:15.947175Z gitpod 497</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-08-03T18:57:15.971175Z gitpod 730</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-08-03T18:57:16.407175Z gitpod 80858</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-08-03T18:57:16.499175Z gitpod 147</div>
<div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article.html" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article.html">Love Live! Custom Arcade Controller.article.html</a> 2022-08-03T18:57:16.451175Z gitpod 10271</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article.html" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article.html">curabitur vel tempus ex.article.html</a> 2022-08-03T18:57:16.463175Z gitpod 10480</div>
<div class="filelisting"><a href="/articles/sigplace1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article.html">sigplace1.article.html</a> 2022-08-03T18:57:16.483175Z gitpod 90580</div>
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article">Love Live! Custom Arcade Controller.article</a> 2022-08-03T19:22:20.295014Z gitpod 497</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-08-03T19:22:20.387014Z gitpod 730</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-08-03T19:22:21.151014Z gitpod 80858</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-08-03T19:22:21.495014Z gitpod 147</div>
<div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article.html" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article.html">Love Live! Custom Arcade Controller.article.html</a> 2022-08-03T19:22:21.387014Z gitpod 10290</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article.html" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article.html">curabitur vel tempus ex.article.html</a> 2022-08-03T19:22:21.399014Z gitpod 10499</div>
<div class="filelisting"><a href="/articles/sigplace1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article.html">sigplace1.article.html</a> 2022-08-03T19:22:21.487014Z gitpod 90599</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -50,7 +50,7 @@ For over a year since I first got into <u>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;
}

@ -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;
}

@ -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;
}

@ -17,12 +17,12 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-08-03T18:57:16.407175Z gitpod 1085</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-08-03T18:57:16.407175Z gitpod 781</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-08-03T18:57:16.411175Z gitpod 994</div>
<div class="filelisting"><a href="/articles/test articles/test1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article.html">test1.article.html</a> 2022-08-03T18:57:16.491175Z gitpod 10799</div>
<div class="filelisting"><a href="/articles/test articles/test2.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article.html">test2.article.html</a> 2022-08-03T18:57:16.495175Z gitpod 10495</div>
<div class="filelisting"><a href="/articles/test articles/test3.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article.html">test3.article.html</a> 2022-08-03T18:57:16.499175Z gitpod 10708</div>
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-08-03T19:22:21.155014Z gitpod 1085</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-08-03T19:22:21.155014Z gitpod 781</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-08-03T19:22:21.155014Z gitpod 994</div>
<div class="filelisting"><a href="/articles/test articles/test1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article.html">test1.article.html</a> 2022-08-03T19:22:21.491014Z gitpod 10818</div>
<div class="filelisting"><a href="/articles/test articles/test2.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article.html">test2.article.html</a> 2022-08-03T19:22:21.495014Z gitpod 10514</div>
<div class="filelisting"><a href="/articles/test articles/test3.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article.html">test3.article.html</a> 2022-08-03T19:22:21.495014Z gitpod 10727</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -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;
}

@ -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;
}

@ -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;
}

@ -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;
}

@ -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"),"&lt;");
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("&lt;");
continue;
}
buildMsg.append(finalMsg.charAt(i));
}
if (Files.exists(Paths.get(sigPlace.COMMENTSDIR,requestParams.get("article")))) {

Loading…
Cancel
Save