You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, noticed that if DSN provided containes invalid sheme, url object returns no error and an empty host. It gives panic in method ensureHavePort(), because there is no check if the address is empty.
My pull request containes length check in method, also added returning error on parsing dsn stage. Plus added some tests :)
Hi, noticed that if DSN provided containes invalid sheme, url object returns no error and an empty host. It gives panic in method ensureHavePort(), because there is no check if the address is empty.
My pull request containes length check in method, also added returning error on parsing dsn stage. Plus added some tests :)
Host check + tests #173
The error trace:
The text was updated successfully, but these errors were encountered: