summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-19 18:25:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-19 18:25:26 +0000
commitae7aa62aff7e48838b21650dc11a7728283c6b07 (patch)
tree29cb0e5ae1c858af2bda1873908c83c2e19794f4 /etc
parent1e52cb1b212f30bf5010a368ccd4696d640252a7 (diff)
downloadpfsense-ae7aa62aff7e48838b21650dc11a7728283c6b07.zip
pfsense-ae7aa62aff7e48838b21650dc11a7728283c6b07.tar.gz
Nuke a c/r if included.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 903cbcc..3c753fc 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -504,6 +504,7 @@ function convert_ip_to_network_format($ip, $subnet) {
* find_interface_ip($interface): return the interface ip (first found)
*/
function find_interface_ip($interface) {
+ $interface = str_replace("\n", "", $interface);
if(does_interface_exist($interface) == false) return;
$ip = exec_command("/sbin/ifconfig {$interface} | /usr/bin/grep -w \"inet\" | /usr/bin/cut -d\" \" -f 2");
$ip = str_replace("\n","",$ip);
OpenPOWER on IntegriCloud