Skip to content

Commit 0b2897b

Browse files
committed
Minor optimisation/refactoring.
1 parent 8131da7 commit 0b2897b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FrontEnd.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Front-end handler (last modified: 2020.10.30).
11+
* This file: Front-end handler (last modified: 2020.11.20).
1212
*/
1313

1414
namespace phpMussel\FrontEnd;
@@ -1930,7 +1930,7 @@ private function quarantineRecursiveList(bool $DeleteMode = false): array
19301930
$List = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->Loader->QuarantinePath), \RecursiveIteratorIterator::SELF_FIRST);
19311931
foreach ($List as $Item => $List) {
19321932
/** Skips if not a quarantined file. */
1933-
if (!preg_match('~\.qfu$~i', $Item) || is_dir($Item) || !is_file($Item) || !is_readable($Item)) {
1933+
if (strtolower(substr($Item, -4)) !== '.qfu' || is_dir($Item) || !is_file($Item) || !is_readable($Item)) {
19341934
continue;
19351935
}
19361936

0 commit comments

Comments
 (0)