From 8c8098e47fc3fff3d8230d8e07b0ba3d737f0e86 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 23 May 2015 21:26:38 +0200 Subject: Execute scripts directly No need to specify the interpreter twice. Signed-off-by: Florian Pritz --- application/controllers/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/controllers') 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 '
'."\n"; echo '
'."\n"; echo '
'."\n"; - passthru('perl '.FCPATH.'scripts/Markdown.pl '.escapeshellarg($file), $return_value); + passthru(escapeshellarg(FCPATH.'scripts/Markdown.pl').' '.escapeshellarg($file), $return_value); echo '
'; return array( -- cgit v1.2.3-24-g4f1b