diff options
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index da4853f..34543d1 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 "<script src='{$directory}{$jsincludename}' type='text/javascript'></script>\n"; } |