From 8b3525c2b79f74089b623ca6870ddb9b06270e5d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 1 Jun 2015 09:35:09 +0200 Subject: Allow stderr for pygments This happens when an invalid lexer is used so until we use the exceptions this should not be forbidden since we won't fall back to plain text then. Signed-off-by: Florian Pritz --- application/controllers/file.php | 1 - 1 file changed, 1 deletion(-) (limited to 'application') diff --git a/application/controllers/file.php b/application/controllers/file.php index 83204c318..8b08bdea8 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -252,7 +252,6 @@ class File extends MY_Controller { } else { // TODO: use exec safe and catch exception $ret = (new \libraries\ProcRunner(array('pygmentize', '-F', 'codetagify', '-O', 'encoding=guess,outencoding=utf8,stripnl=False', '-l', $lexer, '-f', 'html', $file))) - ->forbid_stderr() ->exec(); // Last 2 items are "" and "" $lines_to_remove = 2; -- cgit v1.2.3-24-g4f1b