Skip to content

Commit 2a7a0a5

Browse files
committed
Bug-fix.
Changelog excerpt: - A small, minor scan optimisation mechanism found to be faulty, causing signatures to sometimes be skipped when not intended.
1 parent bb4c916 commit 2a7a0a5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
1717
[2020.10.01; Bug-fix; v10mthibault]: Typo in Loader.php; Trying to call function sprint instead of sprintf which leads to an error; Fixed.
1818

1919
[2020.10.15; Bug-fix; Maikuolan]: Wrong number of files reported when recursively scanning through directories; Fixed. *Refer [#225](https://github.com/phpMussel/phpMussel/issues/225).*
20+
21+
### v3.0.3
22+
23+
[2020.10.18; Bug-fix; Maikuolan]: A small, minor scan optimisation mechanism found to be faulty, causing signatures to sometimes be skipped when not intended; Removed it. *Refer [#224](https://github.com/phpMussel/phpMussel/issues/224).*

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

1414
namespace phpMussel\Core;
@@ -1941,7 +1941,7 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
19411941
strpos($VNLC, '-php') !== false || strpos($VNLC, '.php') !== false
19421942
)) || ($is_not_html && (
19431943
strpos($VNLC, '-htm') !== false || strpos($VNLC, '.htm') !== false
1944-
)) || $$DataSourceLen < $ThisSigLen) {
1944+
))) {
19451945
continue;
19461946
}
19471947
if (

0 commit comments

Comments
 (0)