-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parseURL can't handle IPv6 addresses #23
Comments
This might be a solution: https://gist.github.com/jlong/2428561 |
This would introduce a dependency on the document object though :/ |
Would be good to ditch the ugly regex though! One option to support both server-side and client-side scenarios is to use The only reason we need to parse the url there is for the |
Otherwise, there's the URL interface : https://developer.mozilla.org/en/docs/Web/API/URL
|
the URL Interface seems no to be Edge compatible |
From what I see here, most of it works. |
ohh, I guess you are right. I tested it in the console without being on the same domain. so I got errors in the dev console because x-domain.. when doing it in the same domain, things look better on IE11. |
@evert I never understood why there was this regexp in the first place. Is it for server-side davclient support ? |
I think I just kept the php approach, so I needed a simple replacement for parse_url. But yea, I think we only use it for The current |
The regex in the
parseURL
function can't parse IPv6 addresses.corresponding line: https://github.com/evert/davclient.js/blob/fc7519d2c81f689dba55d0a4504803c5774741ff/lib/client.js#L364
The text was updated successfully, but these errors were encountered: