From cac62df50784709e8885cba7d03babcd94bd0a01 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 26 Sep 2012 22:26:51 +0200 Subject: c/file/_download: urldecode mode to fix lexers with spaces Pygments has lexers with space in the name and those won't work unless we decode them. Example: "Duel View" Signed-off-by: Florian Pritz --- application/controllers/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/file.php b/application/controllers/file.php index c2af86fe9..24ecfcf37 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -85,7 +85,7 @@ class File extends CI_Controller { function _download() { $id = $this->uri->segment(1); - $mode = $this->uri->segment(2); + $mode = urldecode($this->uri->segment(2)); $filedata = $this->mfile->get_filedata($id); $file = $this->mfile->file($filedata['hash']); -- cgit v1.2.3-24-g4f1b