PHP8なのに、str_containsで出来ない…

このコミットが含まれているのは:
守矢諏訪子 2021-10-14 08:38:43 +09:00
コミット 8eea8d0879
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -13,7 +13,7 @@ class Comment {
$user = null;
if (isset($_COOKIE['kero_token'])) $user = DB::table('users')->select('id')->where('kero_token', $_COOKIE['kero_token'])->first()->id;
if ($user == 0 && (str_contains($r->newmessage, 'http://') || str_contains($r->newmessage, 'https://'))) return redirect('/');
if ($user == 0 && (strpos($r->newmessage, 'http://') !== false || strpos($r->newmessage, 'https://') !== false)) return redirect('/');
$add = DB::table('blg_comments')->insertGetId([
'user_id' => $user,