summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_mobile.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-03-06 11:26:18 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-03-06 11:26:18 -0300
commit277810659aa80c7a8f30a35e1575a7796007ce51 (patch)
tree30f5b02656752a0b754d8ba125f5e1d707db72ce /usr/local/www/vpn_ipsec_mobile.php
parent8cb4f5b12ac9784c4f39e6dc15950e4b97de08cb (diff)
downloadpfsense-277810659aa80c7a8f30a35e1575a7796007ce51.zip
pfsense-277810659aa80c7a8f30a35e1575a7796007ce51.tar.gz
Remove multiple spaces from dns_split as a seatbelt, also fix the message since field is expected to be space separated and not comma. Ticket #4418
Diffstat (limited to 'usr/local/www/vpn_ipsec_mobile.php')
-rw-r--r--usr/local/www/vpn_ipsec_mobile.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php
index 2b70809..8fed8e9 100644
--- a/usr/local/www/vpn_ipsec_mobile.php
+++ b/usr/local/www/vpn_ipsec_mobile.php
@@ -146,6 +146,8 @@ if ($_POST['submit']) {
if ($pconfig['dns_split_enable']) {
if (!empty($pconfig['dns_split'])) {
+ /* Replace multiple spaces by single */
+ $pconfig['dns_split'] = preg_replace('/\s+/', ' ', trim($pconfig['dns_split']));
$domain_array=explode(' ', $pconfig['dns_split']);
foreach ($domain_array as $curdomain) {
if (!is_domain($curdomain)) {
@@ -513,7 +515,7 @@ function login_banner_change() {
<input name="dns_split_enable" type="checkbox" id="dns_split_enable" value="yes" <?=$chk;?> onclick="dns_split_change()" />
</td>
<td>
- <?=gettext("Provide a list of split DNS domain names to clients. Enter a comma separated list."); ?><br />
+ <?=gettext("Provide a list of split DNS domain names to clients. Enter a space separated list."); ?><br />
<?=gettext("NOTE: If left blank, and a default domain is set, it will be used for this value."); ?>
</td>
</tr>
OpenPOWER on IntegriCloud