| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-14 14:11:10 GMT-0800 |
| Commit | 7c1f802ee1a3a510941b0c2acaed0898ed5f2e70 |
| Parent | 34c82d2 |
| public function render() { | ||
| - $filename = $_GET['name'] ?? 'file'; | ||
| - | ||
| + $filename = basename($_GET['name'] ?? '') ?: 'file'; | ||
| $file = $this->git->readFile($this->hash, $filename); | ||
| while (ob_get_level()) { | ||
| ob_end_clean(); | ||
| } | ||
| - | ||
| - header('X-LiteSpeed-DoNotGzip: on'); | ||
| - ini_set('zlib.output_compression', '0'); | ||
| $file->emitRawHeaders(); | ||
| - | ||
| $this->git->stream($this->hash, function($d) { | ||
| echo $d; | ||
| }); | ||
| exit; | ||
| } | ||
| } | ||
| + | ||
| Delta | 2 lines added, 6 lines removed, 4-line decrease |
|---|