summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 1407ab1..8a07ae7 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -60,9 +60,7 @@ function log_error($error) {
******/
function get_interface_mac_address($interface) {
$mac = exec('ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2');
- $mac = str_replace("\n", "", $mac);
- $mac = str_replace("\r", "", $mac);
- return $mac;
+ return str_replace(array("\n", "\r"), "", $mac);
}
/****f* pfsense-utils/return_dir_as_array
OpenPOWER on IntegriCloud