feed-io icon indicating copy to clipboard operation
feed-io copied to clipboard

Catastrofic backtracking fix

Open DemonTPx opened this issue 2 months ago • 2 comments

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

DemonTPx avatar Apr 09 '24 13:04 DemonTPx