diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/controllers/file.php | 2 | ||||
-rw-r--r-- | application/libraries/Pygments.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index cb7889bac..9e920b9fa 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -305,7 +305,7 @@ class File extends MY_Controller { echo '<div class="code content table markdownrender">'."\n"; echo '<div class="table-row">'."\n"; echo '<div class="table-cell">'."\n"; - passthru('perl '.FCPATH.'scripts/Markdown.pl '.escapeshellarg($file), $return_value); + passthru(escapeshellarg(FCPATH.'scripts/Markdown.pl').' '.escapeshellarg($file), $return_value); echo '</div></div></div>'; return array( diff --git a/application/libraries/Pygments.php b/application/libraries/Pygments.php index 0c536008d..588f78842 100644 --- a/application/libraries/Pygments.php +++ b/application/libraries/Pygments.php @@ -23,7 +23,7 @@ class Pygments { private static function get_pygments_info() { return cache_function_full('pygments_info-v2', 1800, function() { ob_start(); - passthru("python ".escapeshellarg(FCPATH."scripts/get_lexer_list.py")); + passthru(escapeshellarg(FCPATH."scripts/get_lexer_list.py")); $output = ob_get_clean(); return json_decode($output, true); |