url-normalizer
url-normalizer copied to clipboard
Lib removes multiple dots from URL
trafficstars
The library is properly handling one or two dots in the URL path, but not properly when we've got there more dots than two.
E.g.
http://www.example.com/../a/b/../c/./d.html -> http://www.example.com/a/c/d.html - That's OK
http://www.example.com/.../..../d.html -> ``http://www.example.com/d.html` - That's not OK, the first URL shouldn't change as it's valid.