Permalink
Browse files

Add BLOCKQUOTE with UL and OL to nesting checks

  • Loading branch information...
1 parent c1e48b4 commit f467315a99d164e19ee1d00af77be7d4f416c1fc @pudge pudge committed Jul 7, 2000
Showing with 6 additions and 4 deletions.
  1. +3 −2 public_html/comments.pl
  2. +3 −2 themes/slashcode/htdocs/comments.pl
View
@@ -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;
@@ -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;

0 comments on commit f467315

Please sign in to comment.