Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
0e1c2323
Commit
0e1c2323
authored
Jun 09, 2009
by
mcramer
Browse files
Fixed: Input was not checked because of added dot (never was empty)
parent
a7333537
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/dns/dns_soa_edit.php
View file @
0e1c2323
...
...
@@ -128,9 +128,9 @@ class page_action extends tform_actions {
$this
->
dataRecord
[
"serial"
]
=
$app
->
validate_dns
->
increase_serial
(
$soa
[
"serial"
]);
//* Check if soa, ns and mbox have a dot at the end
if
(
substr
(
$this
->
dataRecord
[
"origin"
],
-
1
,
1
)
!=
'.'
)
$this
->
dataRecord
[
"origin"
]
.
=
'.'
;
if
(
substr
(
$this
->
dataRecord
[
"ns"
],
-
1
,
1
)
!=
'.'
)
$this
->
dataRecord
[
"ns"
]
.
=
'.'
;
if
(
substr
(
$this
->
dataRecord
[
"mbox"
],
-
1
,
1
)
!=
'.'
)
$this
->
dataRecord
[
"mbox"
]
.
=
'.'
;
if
(
strlen
(
$this
->
dataRecord
[
"origin"
])
>
0
&&
substr
(
$this
->
dataRecord
[
"origin"
],
-
1
,
1
)
!=
'.'
)
$this
->
dataRecord
[
"origin"
]
.
=
'.'
;
if
(
strlen
(
$this
->
dataRecord
[
"ns"
])
>
0
&&
substr
(
$this
->
dataRecord
[
"ns"
],
-
1
,
1
)
!=
'.'
)
$this
->
dataRecord
[
"ns"
]
.
=
'.'
;
if
(
strlen
(
$this
->
dataRecord
[
"mbox"
])
>
0
&&
substr
(
$this
->
dataRecord
[
"mbox"
],
-
1
,
1
)
!=
'.'
)
$this
->
dataRecord
[
"mbox"
]
.
=
'.'
;
//* Replace @ in mbox
if
(
stristr
(
$this
->
dataRecord
[
"mbox"
],
'@'
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment