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
2af680e7
Commit
2af680e7
authored
Sep 15, 2020
by
Thom
🛠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only change names with just @ or *
parent
c08601c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
interface/web/dns/dns_edit_base.php
interface/web/dns/dns_edit_base.php
+4
-4
No files found.
interface/web/dns/dns_edit_base.php
View file @
2af680e7
...
...
@@ -114,13 +114,13 @@ class dns_page_action extends tform_actions {
}
// end if user is not admin
// Replace @ to example.com.
if
(
stristr
(
$this
->
dataRecord
[
"name"
],
'@'
)
)
{
$this
->
dataRecord
[
"name"
]
=
str_replace
(
'@'
,
$soa
[
'origin'
],
$this
->
dataRecord
[
"name"
])
;
if
(
$this
->
dataRecord
[
"name"
]
===
'@'
)
{
$this
->
dataRecord
[
"name"
]
=
$soa
[
'origin'
]
;
}
// Replace * to *.example.com.
if
(
stristr
(
$this
->
dataRecord
[
"name"
],
'*'
)
)
{
$this
->
dataRecord
[
"name"
]
=
str_replace
(
'*'
,
'*.'
.
$soa
[
'origin'
],
$this
->
dataRecord
[
"name"
])
;
if
(
$this
->
dataRecord
[
"name"
]
===
'*'
)
{
$this
->
dataRecord
[
"name"
]
=
'*.'
.
$soa
[
'origin'
]
;
}
if
(
$this
->
checkDuplicate
())
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
lng
(
"data_error_duplicate"
)
.
"<br>"
;
...
...
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