feed-io
feed-io copied to clipboard
Catastrofic backtracking fix
Fixes #425
Update setHostInContent
regexes to reduce steps and hopefully prevent a PREG_BACKTRACK_LIMIT_ERROR
and check result of preg_replace
to be sure we do not set content or description to null
.
Also refactor setHostInContent
and getHostFromLink
a bit for readability.
cc @IgorA100