From 26661ec9933d4fb91c357d9d38ea682dd661eb7f Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 25 Mar 2014 12:28:40 -0300 Subject: [PATCH] Only consider javascript files that ends with .js --- usr/local/www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/index.php b/usr/local/www/index.php index da4853f114..34543d1e4d 100644 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -766,7 +766,7 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard"); $jsincludefiles[] = $filename; } foreach($jsincludefiles as $jsincludename) { - if(!stristr($jsincludename, ".js")) + if(!preg_match('/\.js$/', $jsincludename)) continue; echo "\n"; }