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"; }