From 22f4ba2c4dfb02bbb073ba2aad02e27defe7e24f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 27 Jan 2022 15:46:57 +0100 Subject: [PATCH] Use `\str_starts_with()` in IPB4 exporter see 1994bd0d00b2eb8841fe7cac639f2e8857153cea --- files/lib/system/exporter/IPB4xExporter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/lib/system/exporter/IPB4xExporter.class.php b/files/lib/system/exporter/IPB4xExporter.class.php index 402eb00..62eff8d 100644 --- a/files/lib/system/exporter/IPB4xExporter.class.php +++ b/files/lib/system/exporter/IPB4xExporter.class.php @@ -353,7 +353,7 @@ class IPB4xExporter extends AbstractExporter // update password hash if ($newUserID) { - if (StringUtil::startsWith($row['members_pass_hash'], '$2')) { + if (\str_starts_with($row['members_pass_hash'], '$2')) { $password = 'Bcrypt:' . $row['members_pass_hash']; } else { $password = 'cryptMD5:' . $row['members_pass_hash'] . ':' . ($row['members_pass_salt'] ?: ''); -- 2.20.1