Skip to content

Commit 793a3f1

Browse files
committed
Bug-fix.
Wrong regex used when checking the hash cache; Fixed.
1 parent 0d4370a commit 793a3f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Scanner.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: The scanner (last modified: 2020.07.19).
11+
* This file: The scanner (last modified: 2020.07.20).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -778,7 +778,7 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
778778
$this->Loader->Configuration['core']['scan_cache_expiry'] > 0 &&
779779
($HashCacheID = $sha256 . hash('sha256', $OriginalFilename)) &&
780780
($HashCacheEntry = $this->Loader->Cache->getEntry($HashCacheID)) &&
781-
preg_match('~^\[\-?\d,".*",".*"\]$~', $HashCacheEntry)
781+
preg_match('~^\[\-?\d,".*"\]$~', $HashCacheEntry)
782782
) {
783783
/** 0: (int) {-5...2}; 1: Text. */
784784
if (($HashCacheEntry = json_decode($HashCacheEntry, true, 2)) === false) {

0 commit comments

Comments
 (0)