Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Adds empty file handling

AuthorDave Jarvis <email>
Date2026-02-08 22:37:36 GMT-0800
Commit25fd48d0f10364d616a9c144e6a8ef2d7551a7d4
Parentf1e6416
Views.php
$this->renderBreadcrumbs($targetHash, 'File');
+ // UPDATED: Handle empty files
+ if ($size === 0) {
+ $this->renderDownloadState($targetHash, "This file is empty.");
+ return;
+ }
+
$rawUrl = '?action=raw&hash=' . $targetHash . $repoParam . '&name=' . urlencode($filename);
Delta6 lines added, 0 lines removed, 6-line increase