Don't include URL params in saved filename.
authorJamie Cameron <jcameron@webmin.com>
Tue, 19 Oct 2010 04:16:25 +0000 (21:16 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 19 Oct 2010 04:16:25 +0000 (21:16 -0700)
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3089852&group_id=17457

updown/updown-lib.pl

index 6942068..2b86857 100755 (executable)
@@ -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 {