Commit 67ecda13 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove trim, closes https://github.com/opnsense/core/issues/530

parent 187d7ee0
...@@ -3572,7 +3572,7 @@ function DHCP6_Config_File_Advanced($interface, $wancfg, $wanif) ...@@ -3572,7 +3572,7 @@ function DHCP6_Config_File_Advanced($interface, $wancfg, $wanif)
if ($wancfg['adv_dhcp6_interface_statement_send_options'] != '') { if ($wancfg['adv_dhcp6_interface_statement_send_options'] != '') {
$options = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp6_interface_statement_send_options']); $options = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp6_interface_statement_send_options']);
foreach ($options as $option) { foreach ($options as $option) {
$send_options .= "\tsend " . trim($option) . ";\n"; $send_options .= "\tsend " . $option . ";\n";
} }
} }
...@@ -3580,7 +3580,7 @@ function DHCP6_Config_File_Advanced($interface, $wancfg, $wanif) ...@@ -3580,7 +3580,7 @@ function DHCP6_Config_File_Advanced($interface, $wancfg, $wanif)
if ($wancfg['adv_dhcp6_interface_statement_request_options'] != '') { if ($wancfg['adv_dhcp6_interface_statement_request_options'] != '') {
$options = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp6_interface_statement_request_options']); $options = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp6_interface_statement_request_options']);
foreach ($options as $option) { foreach ($options as $option) {
$request_options .= "\trequest " . trim($option) . ";\n"; $request_options .= "\trequest " . $option . ";\n";
} }
} }
...@@ -3832,7 +3832,7 @@ function DHCP_Config_File_Advanced($interface, $wancfg, $wanif) { ...@@ -3832,7 +3832,7 @@ function DHCP_Config_File_Advanced($interface, $wancfg, $wanif) {
if ($wancfg['adv_dhcp_send_options'] != '') { if ($wancfg['adv_dhcp_send_options'] != '') {
$options = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp_send_options']); $options = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp_send_options']);
foreach ($options as $option) { foreach ($options as $option) {
$send_options .= "\tsend " . trim($option) . ";\n"; $send_options .= "\tsend " . $option . ";\n";
} }
} }
...@@ -3850,7 +3850,7 @@ function DHCP_Config_File_Advanced($interface, $wancfg, $wanif) { ...@@ -3850,7 +3850,7 @@ function DHCP_Config_File_Advanced($interface, $wancfg, $wanif) {
if ($wancfg['adv_dhcp_option_modifiers'] != '') { if ($wancfg['adv_dhcp_option_modifiers'] != '') {
$modifiers = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp_option_modifiers']); $modifiers = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', $wancfg['adv_dhcp_option_modifiers']);
foreach ($modifiers as $modifier) { foreach ($modifiers as $modifier) {
$option_modifiers .= "\t" . trim($modifier) . ";\n"; $option_modifiers .= "\t" . $modifier . ";\n";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment