Describe the bug
If the /payment_endpoint route on a repository returns an accidental newline at the end of the endpoint URL, then there will be scenarios where Payment Provider services don't work.
To Reproduce
Create a dummy APT repository and set /payment_endpoint's return value to include a newline at the end.
Describe the bug If the
/payment_endpoint
route on a repository returns an accidental newline at the end of the endpoint URL, then there will be scenarios where Payment Provider services don't work.To Reproduce Create a dummy APT repository and set
/payment_endpoint
's return value to include a newline at the end.Expected behavior Zebra should handle this by trimming newlines and whitespaces when parsing the endpoint. https://github.com/zbrateam/Zebra/blob/2539b4f86dc92d19af47240f2efdbd09056d9997/Zebra/Database/ZBDatabaseManager.m#L314