diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-06-01 09:35:09 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-06-01 09:35:09 +0200 |
commit | 8b3525c2b79f74089b623ca6870ddb9b06270e5d (patch) | |
tree | 96d7667da18b8afb36feb99ebfe1dba3259d5eb1 /application/controllers/file.php | |
parent | 381c1def9cd224864a1c799eb6a9604b3fee1e13 (diff) |
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 <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r-- | application/controllers/file.php | 1 |
1 files changed, 0 insertions, 1 deletions
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 "</pre></div>" and "" $lines_to_remove = 2; |