Topic: all caps protection not working in release 1.1.5

It seems the all-caps protection doesn't work ... I've set "All Caps Message" and "All Caps Subject" both to "No", but still, nobody has any problems making posts like this one...

Can anyone test and de/confirm this please?

Thanks

Re: all caps protection not working in release 1.1.5

works fine with our forum (1.1.5).... roll

Re: all caps protection not working in release 1.1.5

I've redone the all caps protection in 1.2, so hopefully, it will work better.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: all caps protection not working in release 1.1.5

Does it look for a percentage of uppercase chars, or could you fool it just by placing a single lowercase char in your message? wink

Re: all caps protection not working in release 1.1.5

It's stupid. It just compares e.g. $subject with strtoupper($subject) and if they are the same, it converts $subject into ucwords(strtolower($subject)).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: all caps protection not working in release 1.1.5

$subject = "ALMOST ALL UPPERCASE dude";
$subject_upper = strtoupper($subject);
$count = 0;
for ($i=0; $i<strlen($subject); $i++)
   if ($subject[$i] == $subject_upper[$i])
      $count++;
if ($count / strlen($subject) > 0.9)
   echo "stop right there, you uppercase MORON!";

or something? (I didn't test that)

7

Re: all caps protection not working in release 1.1.5

1.2.6, not working here,

http://www.betrbeagle.com/forums/viewforum.php?id=3

Rickard wrote:

I've redone the all caps protection in 1.2, so hopefully, it will work better.

Re: all caps protection not working in release 1.1.5

The default is disabled, and it only works on topics posted while it's enabled