Skip Menu |

This queue is for tickets about the File-Fetch CPAN distribution.

Report information
The Basics
Id: 88025
Status: new
Priority: 0/
Queue: File-Fetch

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

Bug Information
Severity: (no value)
Broken in:
  • 0.34
  • 0.36
  • 0.38
  • 0.40
  • 0.42
Fixed in: (no value)



Subject: Clear URI fragments before processing
URI fragments (the #... part) are intra-document only. It should not be sent to the server. In fact it should be possible to reapply the fragment of the original URI to an file:// URI built from the downloaded file. Currently the URI fragment leaks at least into ->output_file. So the URI fragment should be either: 1. cleared from the URI at construction time 2. ignored when building output_file /me prefers 1. -- Olivier Mengué - http://perlresume.org/DOLMEN
How to reproduce: perl -MFile::Fetch -E 'say File::Fetch->new(uri => "http://example.com/xxx#zzz")->output_file' -- Olivier Mengué - http://perlresume.org/DOLMEN