summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-06 19:38:09 -0500
committerjim-p <jimp@pfsense.org>2013-02-06 19:38:09 -0500
commitd7a1532bbf016674514daa01a8bbec20848f8870 (patch)
treec346e24c2b97df4d11bff1ea56d4a198a6ff066b /usr/local/www
parentf7352cd84ef2bebee88ab022cb1291890d417c78 (diff)
downloadpfsense-d7a1532bbf016674514daa01a8bbec20848f8870.zip
pfsense-d7a1532bbf016674514daa01a8bbec20848f8870.tar.gz
Only include files that actually end in .inc, otherwise patching can lead to errors since .inc.orig patched the old test.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/guiconfig.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index fd7ac7e..6d0cc77 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -60,7 +60,7 @@ require_once("functions.inc");
/* Pull in all the gui related display classes) */
foreach (scandir("/usr/local/www/classes/") as $file) {
- if (stristr($file, ".inc") !== false) {
+ if (substr($file, -4) == ".inc") {
require_once("classes/{$file}");
}
}
OpenPOWER on IntegriCloud