Revision 6dfb6b27
Added by Phil Davis about 9 years ago
src/etc/inc/pfsense-utils.inc | ||
---|---|---|
2733 | 2733 |
continue; |
2734 | 2734 |
} |
2735 | 2735 |
// Include the extra handler |
2736 |
include("$nf"); |
|
2736 |
include_once("$nf");
|
|
2737 | 2737 |
} |
2738 | 2738 |
} |
2739 | 2739 |
} |
Also available in: Unified diff
Update include() to include_once()
For safety, use include_once() when including various "side" files.
There are a couple of instances of include("guiconfig,inc") that I
changes to use require_once() to be consistent with everywhere else.
The remaining cases of include() are just (hundreds of) head.inc and
footer.inc - those are only at the start/end of the ordinary top-level
interactive PHP files. There is no nested interaction of those to think
about, so that should be fine.