push @{ $form->{WEBDAV} }, {
'name' => $fname,
- 'link' => ($ENV{"HTTPS"} ? "https://" : "http://") . $ENV{'SERVER_NAME'} . "/$base_path/$file",
+ 'link' => "$base_path/$file",
'type' => $is_directory ? $main::locale->text('Directory') : $main::locale->text('File'),
};
}