I've been poking about RFCs for the definitive answer about what to do with multiple slashes in the path part without much success.
Is <http://example.com//foo> really equivalent to <http://example.com/foo>? Should URI->new->canonical('http://example.com/////foo') compress the slashes?
slashes matter to the URI
No, and no.
The URIs are not the same. Whether your application decides to ignore repeated
slashes (the way that unix does) is obviously up to that application.
URIs
TorgoX on 2004-04-15T06:22:43
I say email Gisle Aas and ask. It's my impression that he practically knows the URL/URI spec backwards and forewards.