Skip to content

Commit

Permalink
[BUGFIX] Fix wrong strlen check in DoubleMetaPhoneUtility
Browse files Browse the repository at this point in the history
while (strlen($this->primary) < 4 || strlen($this->secondary < 4)) {

should be

while (strlen($this->primary) < 4 || strlen($this->secondary) < 4) {

Resolves: #85296
Releases: master,8.7
Change-Id: I1820218410538c095f3e3c907190726f8e970410
Reviewed-on: https://review.typo3.org/57252
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
  • Loading branch information
wouter90 authored and bmack committed Jun 18, 2018
1 parent 0b2a0e5 commit 80aeefd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ public function DoubleMetaPhone($string)
$this->current++;
}
// main loop
while (strlen($this->primary) < 4 || strlen($this->secondary < 4)) {
while (strlen($this->primary) < 4 || strlen($this->secondary) < 4) {
if ($this->current >= $this->length) {
break;
}
Expand Down

0 comments on commit 80aeefd

Please sign in to comment.