in /var/www/owncloud/lib/private/files.php
In this case, the workspace/store is called Savills. We also want to cover when the other download button is chosen from the root itself (download.zip).
Look for the code starting with “try”, and modify like below. Dirty but does the job for now.
try {
if ($name ===’download.zip’) {
header(“HTTP/1.0 403 Forbidden”);
die(“Please choose a smaller selection to download. Use your back button to return.”);
}
else
if (($name ===’Storage.zip’) && (count($files) == “1”)) {
header(“HTTP/1.0 403 Forbidden”);
die(“Tried to download whole of root, as Storage.zip. Not allowed.”);
}
else
Comments (0)