Virus cheking not works
Status: Beta
Brought to you by:
keyboardartist
I tried to check the special folder for viruses and with no success.
In that folder i placed different kinds of files with special keywords for better detecting.
I looked to the source code and discovered that on function virus_check()
if (stripos($data, trim($virus[1]))) {
the string $virus[1] needs to be trimed.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
p.s. I tried original phpantivirus script v1.0.3
Tried 1.0.3 and 1.0.2.
The problem is newlines getting into virus[1].
I think this flag could fix it (though not tested yet): FILE_IGNORE_NEW_LINES
As Fdisk said, maybe a simple call to php trim() would be more effective than the flag i said before.