* Use uri_escape to escape URI's before sending them back out so the name
of the file doesn't munge the query string. (URI handling really needs to
be improved, but this will work for starters.) [#301606 part 1]
* call decode_rfc1522 on the filename returned so that encoded filenames
get decoded to something "reasonable." [#301606 part 2]
* We now require URI::Escape
my $type = $entity->effective_type;
my $filename = $entity->head->recommended_filename;
$filename = '' unless defined $filename;
+ $filename = decode_rfc1522($filename);
if ($top) {
$$this .= htmlsanit(decode_rfc1522($entity->stringify_header))
use MLDBM qw/DB_File/;
use POSIX qw/ceil/;
+use URI::Escape;
+
$config_path = '/etc/debbugs';
$lib_path = '/usr/lib/debbugs';
require "$lib_path/errorlib";
}
$params .= "&archive=yes" if ($common_archive);
my $pathinfo = '';
- $pathinfo = "/$filename" if $filename ne '';
+ $pathinfo = '/'.uri_escape($filename) if $filename ne '';
return urlsanit("bugreport.cgi$pathinfo?$params");
}
Package: debbugs
Architecture: all
-Depends: perl5 | perl, exim | mail-transport-agent, libmailtools-perl, ed, libmime-perl, libio-stringy-perl, libmldbm-perl, libunicode-maputf8-perl
+Depends: perl5 | perl, exim | mail-transport-agent, libmailtools-perl, ed, libmime-perl, libio-stringy-perl, libmldbm-perl, libunicode-maputf8-perl, liburi-perl
Recommends: httpd, links | lynx
Suggests: spamassassin
Description: The bug tracking system based on the active Debian BTS