Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add BLOCKQUOTE with UL and OL to nesting checks

  • Loading branch information...
commit f467315a99d164e19ee1d00af77be7d4f416c1fc 1 parent c1e48b4
@pudge pudge authored
Showing with 6 additions and 4 deletions.
  1. +3 −2 public_html/comments.pl
  2. +3 −2 themes/slashcode/htdocs/comments.pl
View
5 public_html/comments.pl
@@ -426,10 +426,11 @@ sub validateComment {
} else {
$tags{$tag}++;
- if (($tags{UL} + $tags{OL}) > 3) {
+ if (($tags{UL} + $tags{OL} + $tags{BLOCKQUOTE}) > 4) {
editComment() and return unless $preview;
print <<EOT;
-You can only post nested lists 3 levels deep. Please fix your UL or OL tags.
+You can only post nested lists and blockquotes four levels deep.
+Please fix your UL, OL, and BLOCKQUOTE tags.
EOT
return;
View
5 themes/slashcode/htdocs/comments.pl
@@ -426,10 +426,11 @@ sub validateComment {
} else {
$tags{$tag}++;
- if (($tags{UL} + $tags{OL}) > 3) {
+ if (($tags{UL} + $tags{OL} + $tags{BLOCKQUOTE}) > 4) {
editComment() and return unless $preview;
print <<EOT;
-You can only post nested lists 3 levels deep. Please fix your UL or OL tags.
+You can only post nested lists and blockquotes four levels deep.
+Please fix your UL, OL, and BLOCKQUOTE tags.
EOT
return;
Please sign in to comment.
Something went wrong with that request. Please try again.