mirror of
https://github.com/nextcloud/server.git
synced 2026-02-13 15:54:59 -05:00
bugfixes on GET requests via WebDAV
This commit is contained in:
parent
85dd7129a8
commit
4e2ef271bc
1 changed files with 9 additions and 5 deletions
|
|
@ -297,12 +297,16 @@
|
|||
|
||||
while ($filename = readdir($handle)) {
|
||||
if ($filename != "." && $filename != "..") {
|
||||
$fullpath = $fspath."/".$filename;
|
||||
if( substr($fspath, -1) != '/' ){
|
||||
$fspath .= '/';
|
||||
}
|
||||
$fullpath = $fspath.$filename;
|
||||
$name = htmlspecialchars($filename);
|
||||
$uri = $_SERVER['SCRIPT_NAME'] . $fullpath;
|
||||
printf($format,
|
||||
number_format(filesize($fullpath)),
|
||||
strftime("%Y-%m-%d %H:%M:%S", filemtime($fullpath)),
|
||||
"<a href='$name'>$name</a>");
|
||||
number_format(OC_FILESYSTEM::filesize($fullpath)),
|
||||
strftime("%Y-%m-%d %H:%M:%S", OC_FILESYSTEM::filemtime($fullpath)),
|
||||
"<a href='$uri'>$name</a>");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -745,4 +749,4 @@ VALUES (?,?,?,?,?,'timeout',?,?)");
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue