Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Antivirus: make sure to do nothing when node is a folder, do not scan…
Browse files Browse the repository at this point in the history
… it!
  • Loading branch information
cdujeu committed Jun 23, 2015
1 parent e5b8146 commit 21f516a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/plugins/action.antivirus/class.AntivirusScanner.php
Expand Up @@ -22,6 +22,9 @@ public function scanFile ($oldNode = null, $newNode = null)
if ($oldNode!=null || $newNode == null) {
return;
}
// ADD THOSE TWO LINES
$newNode->loadNodeInfo();
if(!$newNode->isLeaf()) return;

$this->callSet($newNode); //initializes attributes

Expand Down

0 comments on commit 21f516a

Please sign in to comment.