summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php2
1 files changed, 1 insertions, 1 deletions
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 "<script src='{$directory}{$jsincludename}' type='text/javascript'></script>\n";
}
OpenPOWER on IntegriCloud