Dave Jarvis' Repositories

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

Sets download filename

AuthorDave Jarvis <email>
Date2026-02-14 13:47:51 GMT-0800
Commit34c82d258cf15905195e0a19ca3732ecb18d8a84
Parent68d8f3d
File.php
header("Content-Type: " . $this->mediaType);
header("Content-Length: " . $this->size);
- header("Content-Disposition: inline; filename=\"" . addslashes($this->name) . "\"");
+ header("Content-Disposition: attachment; filename=\"" . addslashes(basename($this->name)) . "\"");
}
pages/RawPage.php
}
- ini_set('zlib.output_compression', '0');
header('X-LiteSpeed-DoNotGzip: on');
- header('Cache-Control: no-transform');
- header('Content-Encoding: none');
+ ini_set('zlib.output_compression', '0');
$file->emitRawHeaders();
Delta2 lines added, 4 lines removed, 2-line decrease