Subject: | Multiple dot segments won't get correctly removed by remove_dot_segemts |
If you've got a URI like 'http://www.example.org/a/b/../../index.html' the dot segements are not removed the right way. When using remove_dot_segments, the result is 'http://www.example.org/a/index.html' but it should be 'http://www.example.org/index.html'.
Here is the snippet I used to test it with URL::Normalize 0.16:
use URL::Normalize;
my $url = 'http://www.example.org/a/b/../../index.html';
my $normalizer = URL::Normalize->new(url => $url);
$normalizer->remove_dot_segments; # Should make => http://www.example.org/index.html
$normalizer->get_URI; # Output => http://www.example.org/a/index.html