Page 1 of 1

Bug with badwords filter, even if inactive

Posted: 22 Dec 2007, 15:10
by aMUSiC
A very strange bug occurs with the bad words filtering mechanism in smartfox pro 1.5.5 (haven't tried 1.6 yet). Whenever i send a Public or Private message which includes at least one capital greek letter (in UTF8), the bad-words filter kicks in and issues an administrator warning message about profanity usage, even when I specifically disable the bad-words filter in config.xml. Additionally, the server will convert all letters to lowercase when passing them to the rest of the clients.

If I use all lowercase letters, the filter will not triger.

Capital greek letters in Unicode span from \\u0386 to \\u03ΑΒ

The filter will not trigger also if I use all capital English letters.

Posted: 26 Dec 2007, 15:33
by Lapo
Could you post the actual characters here? (hope the board supports it, it should) so we can copy/paste them around and test
Thanks

Posted: 08 Jan 2008, 15:08
by aMUSiC
yes of course

Α Î’ Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Î

Posted: 09 Jan 2008, 08:29
by aMUSiC
(switch browser's encoding to UTF-8 to see/copy the characters)

Posted: 09 Jan 2008, 08:52
by Lapo
My browser doesn't have problems with Greek characters as you can see below:

Image

However I don't think I am seeing your characters correctly in your post.
This is what I see... is it correct?

Image

In case those characters are not the right ones, please send us a utf-8 text file with the problematic chars and we'll take a look asap.

Thanks

Posted: 09 Jan 2008, 13:55
by aMUSiC
Lapo, the encoding on this site/forum is NOT UTF-8.. it's iso-8859-1 as the page source indicates
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
I forcibly-switched my browsers encoding to UTF-8 before posting these characters here. Then when I try to view the post the browser's encoding automatically switches back to 8859-1 and I see the same symbols that you have posted in the screenshot. Manually changing again my browser's encoding to UTF-8 reveals the correct greek characters.

Posted: 09 Jan 2008, 13:59
by aMUSiC
Attempt of posting greek while in iso-8859-1 mode

Capital: Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω / Ά Έ Ή Ί Ό Ώ Ύ Ϊ Ϋ
Lowercase: α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω / ά έ ή ί ό ώ ς ύ ϊ ϋ ΐ ΰ

Posted: 10 Jan 2008, 08:00
by Lapo
Thanks. We have tested with versions 1.5, 1.5.9 and 1.6.0 and found that the problem exists only in version 1.5 so I recommend to upgrade to 1.5.9 or 1.6

http://www.smartfoxserver.com/products/ ... #downloads