Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid running string functions when domain is null (#258)
Fixes an issue in PHP 8.1 where a request with no `Referer` or `Origin` header causes a "deprecated" `ErrorException` when `Str::replaceFirst` attempts to call `strpos` with `null` as the first argument.
- Loading branch information