Skip to content

Conversation

@jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Mar 3, 2025

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.

`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.
@j0k3r j0k3r merged commit a18cd0f into j0k3r:master Mar 4, 2025
10 checks passed
@jtojnar jtojnar deleted the local-no-domain branch March 4, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants