Closed ovidiul closed 4 months ago
Other than the conflicts, having looked at this again with fresh eyes, I think there are a lot of parts that could and should be pulled out into fresh PRs as iterative steps to improve the testing / resilience of this plugin, culminating with a final PR that actually does the needed fix. Things like Normalize tests, Utils::mb_parse_url etc.
I started splitting this out, but the more I looked and tested locally, the more it made sense to just double-checked the PR worked as is, and it does!
This PR addressed the bug highlighted in issue #42
It adds:
mb_parse_url
that properly handles non-ASCII chars encodingsUtils
class to keep helper method mb_parse_urlUtilsTest
for the Utils classmaybe_do_redirect
method by adding aLookup::get_redirect_data
method for easier testing; this will also decrease its overall cyclomatic code complexityLookup::get_redirect_data
method in theLookupTest
class