diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-07 03:42:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-07 03:42:33 +0000 |
commit | 2ff8d4ad1f43b7bb31463dfb47be0c660828669a (patch) | |
tree | d7868bcfa781b115c928d4dcefed47f445eee30c /usr | |
parent | 7fae6598b057bd8cc5a7043ef6fad4fab1d97709 (diff) | |
download | pfsense-2ff8d4ad1f43b7bb31463dfb47be0c660828669a.zip pfsense-2ff8d4ad1f43b7bb31463dfb47be0c660828669a.tar.gz |
Do not check host for errors on zonedit type to allow exotic configuration involving commas, etc to update multiple hostnames.
Ticket #1249
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dyndns.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php index 27f7518..a9633d5 100755 --- a/usr/local/www/services_dyndns.php +++ b/usr/local/www/services_dyndns.php @@ -73,8 +73,10 @@ if ($_POST) { } do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - if (($_POST['host'] && !is_domain($_POST['host']))) { - $input_errors[] = "The host name contains invalid characters."; + if($pconfig['type'] <> "zoneedit") { + if (($_POST['host'] && !is_domain($_POST['host']))) { + $input_errors[] = "The host name contains invalid characters."; + } } if (($_POST['mx'] && !is_domain($_POST['mx']))) { $input_errors[] = "The MX contains invalid characters."; @@ -192,7 +194,7 @@ function enable_change(enable_change) { <span class="red"><strong>Note:<br></strong> </span> Enter the complete host/domain name. example: myhost.dyndns.org - </span> + </span> </td> </tr> <tr> @@ -227,10 +229,10 @@ function enable_change(enable_change) { <td width="22%" valign="top"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="Save" onClick="enable_change(true)"> - </td> + </td> <tr> <td colspan="2" class="list" height="12"> </td> - </tr> + </tr> </tr> <tr> <td colspan="2" valign="top" class="optsect_t"> |