yarl.URL doesn't recognize BACKSLASH as host-path separator
Aperta
bug
enhancement
- Lingua principale
- Python
- Stelle
- 1.5k
- Fork
- 215
- Merge medio
- 1g 2m
- PR unite (30g)
- 13
Descrizione
Having `"https://google%2Ecom\.yahoo.com/"` as URL, both Chrome and Firefox resolve it as "google.com" to be the domain, which is (most probably) what the [URL spec](https://url.spec.whatwg.org/) is defining.
Right now, yarl doesn't recognize that:
```
In [8]: yarl.URL(r"https://google%2Ecom%2F.yahoo.com/").host
Out[8]: 'google%2ecom%2f.yahoo.com'
```
I think it's important to fix this, specially from a security perspective. What do you think?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.