diff options
author | Phil Davis <phil.davis@inf.org> | 2016-06-28 09:01:31 +0930 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-06-28 09:01:31 +0930 |
commit | 86573bb9644f484b974861874f8f50842c31cbc5 (patch) | |
tree | b05d67f1452243970be09c634f8d6a0e763e0fab /src/usr/local/www/restart_httpd.php | |
parent | f310decfbb6beea0955357700469a0c2244468b7 (diff) | |
download | pfsense-86573bb9644f484b974861874f8f50842c31cbc5.zip pfsense-86573bb9644f484b974861874f8f50842c31cbc5.tar.gz |
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.
Diffstat (limited to 'src/usr/local/www/restart_httpd.php')
-rw-r--r-- | src/usr/local/www/restart_httpd.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/restart_httpd.php b/src/usr/local/www/restart_httpd.php index 394eed8..87143b0 100644 --- a/src/usr/local/www/restart_httpd.php +++ b/src/usr/local/www/restart_httpd.php @@ -68,7 +68,7 @@ include("head.inc"); ?> <form> -<?php include("fbegin.inc"); ?> +<?php include_once("fbegin.inc"); ?> <?=gettext("Mounting file systems read/write");?>... <?php flush(); sleep(1); conf_mount_rw(); ?> |