network fix parameter passing when using ""

Message ID 1502864713-6081-1-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show

Message

Jonatan Schlag Aug. 16, 2017, 6:25 a.m.
When we use "" on the command line to pass a value with spaces
the argument was broken when passing it to the next function.
Now the argument is kept as one string with spaces

Fixes: #11438

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/functions/functions.bonding               |   4 +-
 src/functions/functions.bridge                |   4 +-
 src/functions/functions.cli.firewall          |  16 +--
 src/functions/functions.device                |   8 +-
 src/functions/functions.dhcpd                 |  38 +++----
 src/functions/functions.distro                |   4 +-
 src/functions/functions.dns                   |   6 +-
 src/functions/functions.editor                |   2 +-
 src/functions/functions.firewall              |   4 +-
 src/functions/functions.firewall-zones        |   6 +-
 src/functions/functions.he                    |   6 +-
 src/functions/functions.hook                  |   8 +-
 src/functions/functions.hostapd               |  12 +-
 src/functions/functions.http                  |   6 +-
 src/functions/functions.interrupts            |   2 +-
 src/functions/functions.ip                    |   4 +-
 src/functions/functions.ip-tunnel             |  12 +-
 src/functions/functions.ipsec                 |  50 ++++-----
 src/functions/functions.iptables              |  12 +-
 src/functions/functions.ipv4                  |  10 +-
 src/functions/functions.ipv6                  |  18 +--
 src/functions/functions.list                  |  20 ++--
 src/functions/functions.modem                 |   6 +-
 src/functions/functions.ports                 |  18 +--
 src/functions/functions.ppp                   |  34 +++---
 src/functions/functions.pppoe-server          |  14 +--
 src/functions/functions.route                 |  64 +++++------
 src/functions/functions.settings              |  20 ++--
 src/functions/functions.util                  |  10 +-
 src/functions/functions.vpn                   |   4 +-
 src/functions/functions.vpn-security-policies |  16 +--
 src/functions/functions.wireless              |  12 +-
 src/functions/functions.wpa_supplicant        |   8 +-
 src/functions/functions.zone                  |  56 +++++-----
 src/header-config                             |   2 +-
 src/header-port                               |   8 +-
 src/header-zone                               |  10 +-
 src/hooks/configs/dhcp                        |   2 +-
 src/hooks/configs/ipv4-static                 |   4 +-
 src/hooks/configs/ipv6-auto                   |   4 +-
 src/hooks/configs/ipv6-static                 |   2 +-
 src/hooks/configs/pppoe-server                |  10 +-
 src/hooks/ports/batman-adv                    |  10 +-
 src/hooks/ports/bonding                       |  14 +--
 src/hooks/ports/dummy                         |   4 +-
 src/hooks/ports/vlan                          |   8 +-
 src/hooks/ports/wireless-adhoc                |  16 +--
 src/hooks/ports/wireless-ap                   |  20 ++--
 src/hooks/zones/6to4-tunnel                   |  14 +--
 src/hooks/zones/bridge                        |   4 +-
 src/hooks/zones/modem                         |  20 ++--
 src/hooks/zones/pppoe                         |  12 +-
 src/hooks/zones/wireless                      |  10 +-
 src/network                                   | 152 +++++++++++++-------------
 54 files changed, 420 insertions(+), 420 deletions(-)