Menu

#4 Virus cheking not works

v1.0.3
open
nobody
5
2010-05-12
2010-05-12
Anonymous
No

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.

Discussion

  • Anonymous

    Anonymous - 2010-05-12

    p.s. I tried original phpantivirus script v1.0.3

     
  • Alex

    Alex - 2011-01-21

    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

     
  • Alex

    Alex - 2011-01-21

    As Fdisk said, maybe a simple call to php trim() would be more effective than the flag i said before.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.