--- toast 2012/07/15 18:40:38 1.486 +++ toast 2016/01/27 07:55:09 1.487 @@ -4790,7 +4790,7 @@ $candidates{$newv} = $hasver = true; next; } - m!^((http|ftp|file)://[^\?]+/)([^\?/]*)(\?.*)?$!i || + m!^((https?|ftp|file)://[^\?]+/)([^\?/]*)(\?.*)?$!i || error("bad URL for upgrade: $_"); my($dirname, $basename, $query) = undeftoempty($1, $3, $4); if($basename !~ /^(.*)\Q$version\E(.*)$/)