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

Commit 21f516a

Browse files
committed
Antivirus: make sure to do nothing when node is a folder, do not scan it!
1 parent e5b8146 commit 21f516a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/plugins/action.antivirus/class.AntivirusScanner.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public function scanFile ($oldNode = null, $newNode = null)
2222
if ($oldNode!=null || $newNode == null) {
2323
return;
2424
}
25+
// ADD THOSE TWO LINES
26+
$newNode->loadNodeInfo();
27+
if(!$newNode->isLeaf()) return;
2528

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

0 commit comments

Comments
 (0)