X-Git-Url: http://git.jankratochvil.net/?p=MyWeb.git;a=blobdiff_plain;f=Web.pm;h=ea6f32f68c7e673f21ff4cbd36c466e787cb2b7f;hp=d349658932313e5db632218a7d7f94a14a6a3522;hb=23bbfdb08c25726bc9687423c10dd28b08753436;hpb=c7ef95c38cb7fea2fa7112560ffdb69b79b7ffda diff --git a/Web.pm b/Web.pm index d349658..ea6f32f 100644 --- a/Web.pm +++ b/Web.pm @@ -411,7 +411,7 @@ my($url,$contents,%args)=@_; $r.='"'; do { $r.=" $_" if $_; } for ($args{"attr"}); $r.='>'.$contents.''; - if ($args{"size"} && url_is_local($url) && $url=~/[.](?:gz|Z|rpm|zip|deb|lha)/) { # Downloadable? + if ($args{"size"} && url_is_local($url) && ($args{"size"}>=2 || $url=~/[.](?:gz|Z|rpm|zip|deb|lha)/)) { # Downloadable? $url=top_dir_disk().$url if $url=~m#^/#; if (!-r $url) { cluck "File not readable: $url"; }