`parse_url($this->url, \PHP_URL_HOST)` will return `null` for local filesystem path.
Casting it to `string` will produce an empty regular expression,
which would match any link when computing link density.
(cherry picked from commit c7208f6ad2)
This also fixes a warning since 1.x passes the `null` directly to `preg_replace` instead of explicitly casting it to `string`.
pull/103/head
parent
487ce3a517
commit
235baf965c
1 changed files with 4 additions and 1 deletions
Loading…
Reference in new issue