summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 1287672..c8d721c 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -97,6 +97,9 @@ $widgetlist = array();
while (false !== ($filename = readdir($dirhandle))) {
$periodpos = strpos($filename, ".");
+ /* Ignore files not ending in .php */
+ if (substr($filename, -4, 4) != ".php")
+ continue;
$widgetname = substr($filename, 0, $periodpos);
$widgetnames[] = $widgetname;
if ($widgetname != "system_information")
OpenPOWER on IntegriCloud