Skip to content

Commit

Permalink
! fix #3709 the return value of strpos() should always be explicitly …
Browse files Browse the repository at this point in the history
…checked
  • Loading branch information
Spuds committed Jun 27, 2023
1 parent 437f7a1 commit 6049742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/subs/EmailParse.class.php
Expand Up @@ -7,7 +7,7 @@
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 1.1.9
* @version 1.1.10
*
*/

Expand Down Expand Up @@ -692,7 +692,7 @@ private function _process_DSN($i)
$type = '';
list($field, $rest) = array_pad(explode(':', $line), 2, '');

if (strpos($line, ';'))
if (strpos($line, ';') !== false)
{
list ($type, $val) = explode(';', $rest);
}
Expand Down

0 comments on commit 6049742

Please sign in to comment.