Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vítězslav Dvořák
ISPConfig 3
Commits
1ccff148
Commit
1ccff148
authored
Sep 15, 2020
by
Thom
🛠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert @ and * to full hostname (#5558 and #5463)
parent
acb7db0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
interface/web/dns/dns_edit_base.php
interface/web/dns/dns_edit_base.php
+11
-1
No files found.
interface/web/dns/dns_edit_base.php
View file @
1ccff148
...
...
@@ -112,7 +112,17 @@ class dns_page_action extends tform_actions {
}
}
}
// end if user is not admin
//* Replace @ to domain name
if
(
stristr
(
$this
->
dataRecord
[
"name"
],
'@'
))
{
$this
->
dataRecord
[
"name"
]
=
str_replace
(
'@'
,
$soa
[
'origin'
],
$this
->
dataRecord
[
"name"
]);
}
//* Replace * to *.example.com.
if
(
stristr
(
$this
->
dataRecord
[
"name"
],
'*'
))
{
$this
->
dataRecord
[
"name"
]
=
str_replace
(
'*'
,
'*.'
.
$soa
[
'origin'
],
$this
->
dataRecord
[
"name"
]);
}
if
(
$this
->
checkDuplicate
())
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
lng
(
"data_error_duplicate"
)
.
"<br>"
;
// Set the server ID of the rr record to the same server ID as the parent record.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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