Don't include URL params in saved filename.

https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3089852&group_id=17457
This commit is contained in:
Jamie Cameron
2010-10-18 21:16:25 -07:00
parent 5a6ef477ff
commit b89a5651e1

View File

@@ -125,7 +125,9 @@ for($i=0; $_[0]->{"url_$i"}; $i++) {
$progress_callback_count = $i;
local $path;
if (-d $_[0]->{'dir'}) {
if ($_[0]->{"page_$i"} =~ /([^\/]+)$/) {
local $page = $_[0]->{"page_$i"};
$page =~ s/\?.*$//;
if ($page =~ /([^\/]+)$/) {
$path = "$_[0]->{'dir'}/$1";
}
else {