--- toast	2004/12/19 04:40:00	1.367
+++ toast	2004/12/19 04:49:55	1.368
@@ -2182,7 +2182,7 @@
         error("unexpected response from $redirurl");
     $url = $1;
     # wget can't always get FTP directory listing correctly w/o trailing slash
-    $url .= "/" unless basename(stripquery($url)) =~ /\.|\/$/; # e.g. atop
+    $url .= "/" if $url =~ m!^ftp:.*/[^/\.]+$!; # e.g. atop
     $url = cleanurl($url);
   }