diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-05 19:47:22 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-05 19:47:22 -0600 |
commit | e55e4b748c7396ab74e93e14fe8d8887fdb43784 (patch) | |
tree | 1cad3e342989659b3b2dcb1b638bc71e955eecf4 /etc/rc.interfaces_wan_configure | |
parent | c75e8aed2fad368ef1804e926dca23bef247155c (diff) | |
download | pfsense-e55e4b748c7396ab74e93e14fe8d8887fdb43784.zip pfsense-e55e4b748c7396ab74e93e14fe8d8887fdb43784.tar.gz |
isset($_GET) seems to always evaluate to true, use something more specific. Fixes use of rc.linkup when run from CLI. Others likely fix similar circumstances, though maybe not ones that are used anywhere.
Diffstat (limited to 'etc/rc.interfaces_wan_configure')
-rwxr-xr-x | etc/rc.interfaces_wan_configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.interfaces_wan_configure b/etc/rc.interfaces_wan_configure index fbdc5e4..c291ee8 100755 --- a/etc/rc.interfaces_wan_configure +++ b/etc/rc.interfaces_wan_configure @@ -34,7 +34,7 @@ require_once("functions.inc"); require_once("filter.inc"); require_once("shaper.inc"); -if (isset($_GET)) +if (isset($_GET['interface'])) $argument = $_GET['interface']; else $argument = str_replace("\n", "", $argv[1]); |