From b121ffad228d5aa914d3048d88c8c8d2be4238f0 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 25 Mar 2014 12:28:40 -0300 Subject: Only consider javascript files that ends with .js --- usr/local/www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 1ef8f0f..874a13c 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -741,7 +741,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"; } -- cgit v1.1