diff options
author | jim-p <jimp@pfsense.org> | 2013-02-06 19:38:09 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-06 19:38:09 -0500 |
commit | d7a1532bbf016674514daa01a8bbec20848f8870 (patch) | |
tree | c346e24c2b97df4d11bff1ea56d4a198a6ff066b /usr/local/www | |
parent | f7352cd84ef2bebee88ab022cb1291890d417c78 (diff) | |
download | pfsense-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-x | usr/local/www/guiconfig.inc | 2 |
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}"); } } |