1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Empty check for e_tohtml_linkwords::linksproc()

This commit is contained in:
Nick Liu 2020-01-18 13:16:46 +01:00
parent a1560b1989
commit 9506f98f69
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -286,15 +286,11 @@ class e_tohtml_linkwords
$tp = e107::getParser();
$doSamePage = !e107::getPref('lw_notsamepage');
// Consider next line - stripos is PHP5, and mb_stripos is PHP >= 5.2 - so may well often require handling
// while (($first < $limit) && (stripos($text,$this->word_list[$first]) === FALSE)) { $first++; }; // *utf (stripos is PHP5 - compatibility handler implements)
while (($first < $limit) && (strpos($tp->ustrtolower($text),$this->word_list[$first]) === false))
for (; $first < $limit; $first ++)
{
$first++;
} // *utf
if (empty($this->word_list[$first])) continue;
if (strpos($tp->ustrtolower($text), $this->word_list[$first]) !== false) break;
}
if ($first == $limit)
{