From eb11f2e01942655779b4eb8b6952ad632d7bfb8c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 4 Dec 2012 22:53:56 +0000 Subject: Interfaces: removed unnecessary escapespecialcharacters calls --- interfaces-model.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'interfaces-model.lua') diff --git a/interfaces-model.lua b/interfaces-model.lua index 57c86fd..548dcb1 100644 --- a/interfaces-model.lua +++ b/interfaces-model.lua @@ -421,15 +421,15 @@ get_status = function () status.filename.errtxt = "File not found" end local cmd = path.."ip route" - local f = io.popen(format.escapespecialcharacters(cmd)) + local f = io.popen(cmd) status.iproute.value = f:read("*a") f:close() cmd = path.."ip addr" - f = io.popen(format.escapespecialcharacters(cmd)) + f = io.popen(cmd) status.ipaddr.value = f:read("*a") f:close() cmd = path.."ip tunnel" - f = io.popen(format.escapespecialcharacters(cmd)) + f = io.popen(cmd) status.iptunnel.value = f:read("*a") f:close() @@ -448,7 +448,7 @@ end get_interfaces = function() local cmd = path.."ip addr" - local f = io.popen(format.escapespecialcharacters(cmd)) + local f = io.popen(cmd) local ipaddr = f:read("*a") f:close() -- now parse the result to find the interfaces @@ -464,7 +464,7 @@ end get_addresses = function() local cmd = path.."ip addr" - local f = io.popen(format.escapespecialcharacters(cmd)) + local f = io.popen(cmd) local ipaddr = f:read("*a") f:close() -- now parse the result to find the interfaces and IP addresses -- cgit v1.2.3