Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the URL-Normalize CPAN distribution.

Report information
The Basics
Id: 87284
Status: resolved
Priority: 0/
Queue: URL-Normalize

People
Owner: Nobody in particular
Requestors: JAMAICA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.16
Fixed in: (no value)



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