summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-09-26 22:26:51 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-09-26 22:26:51 +0200
commitcac62df50784709e8885cba7d03babcd94bd0a01 (patch)
treeb1f2af22c84a9f210620ec5df8d0ecde76455f50
parent30fee9732b6fcf47b0a09c5a379ae07744b0984a (diff)
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 <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
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']);