summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-03-25 12:28:40 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-03-25 12:29:01 -0300
commitb121ffad228d5aa914d3048d88c8c8d2be4238f0 (patch)
tree1ab28d9bfe22d82bf4f51a19a87c8337dcead970 /usr/local/www
parentc4fb986b27a6b6e81d7605ae48eda169a7d680cf (diff)
downloadpfsense-b121ffad228d5aa914d3048d88c8c8d2be4238f0.zip
pfsense-b121ffad228d5aa914d3048d88c8c8d2be4238f0.tar.gz
Only consider javascript files that ends with .js
Diffstat (limited to 'usr/local/www')
-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