diff options
author | jim-p <jimp@pfsense.org> | 2011-07-28 14:23:02 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-07-28 14:24:46 -0400 |
commit | d3347fdf2bbe02f1ab45da556f60f45133491851 (patch) | |
tree | 83b646a343f6a4b12e782e7547d4b93e6f9b58b4 /usr/local | |
parent | 4222087e90badb854274109fc32de422c5c25221 (diff) | |
download | pfsense-d3347fdf2bbe02f1ab45da556f60f45133491851.zip pfsense-d3347fdf2bbe02f1ab45da556f60f45133491851.tar.gz |
Fix display of ssh port on anti-lockout rule display in GUI.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index da9abd1..8e61360 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -409,11 +409,9 @@ if($_REQUEST['undodrag']) { $sshport = ""; if (isset($config['system']['enablesshd'])) { - $sshport = 22; - if($config['system']['ssh']['port'] <> "") - $sshport = $config['system']['ssh']['port']; + $sshport = ($config['system']['ssh']['port']) ? $config['system']['ssh']['port'] : 22; } - $sshport = "22<br/>"; + $sshport = "{$sshport}<br/>"; ?> <tr valign="top" id="antilockout"> <td class="list"> </td> |