Tetra-WebBBS Support Forum
Re: block empty messages?
In Response To: Re: block empty messages? ()
: It works ...
... the link to remove the NEW-flags works now. But
: unfortunately the script no longer blocks empty messages as
: intended ...
Try this:
if ( ( ($ENV{'QUERY_STRING'} =~ /$QueryMode{'post'}/)
|| ($ENV{'REQUEST_URI'} =~ /$QueryMode{'post'}/)
)
&& ($ENV{'REQUEST_METHOD'} =~ /^post$/i)
) {
my $teststring = $tbb->{'post'}->{'body'};
........
It's always the details ...
And remember, this code is only IF the editor comes into play.
If automated procedures submit posts they likely won't use your editor, thus consider this recommendation as well:
http://tetrabb.com/forum/WebBBS/index.cgi?page=1;md=read;id=10429
Please report back
Rainer

![[+]](/i/toc_collapsed.gif)
![[-]](/i/toc_expanded.gif)
WebScripts










