Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phpipam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
phpipam
Commits
8841b69f
Unverified
Commit
8841b69f
authored
Jun 10, 2019
by
Miha Petkovsek
Committed by
GitHub
Jun 10, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #2528 from webmeisterei/fix_pdns_domain_for_hostname_pt2
Fix pDNS Domain for Hostname, pt2
parents
bd31c999
a86222ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/admin/powerDNS/record-edit.php
+2
-2
2 additions, 2 deletions
app/admin/powerDNS/record-edit.php
with
2 additions
and
2 deletions
app/admin/powerDNS/record-edit.php
+
2
−
2
View file @
8841b69f
...
...
@@ -52,13 +52,13 @@ else {
if
(
$all_domains
!==
false
)
{
// Reverse the hostname, this fixes #1471 and #2374
$r_host
name
=
implode
(
"."
,
array_reverse
(
explode
(
"."
,
$_POST
[
'domain_id'
])));
$r_host
domain
=
implode
(
"."
,
array_reverse
(
array_slice
(
explode
(
"."
,
$_POST
[
'domain_id'
])
,
1
)
));
foreach
(
$all_domains
as
$dk
=>
$domain_s
)
{
// Reverse the domain and compare it reversed, this fixes #1471 and #2374
$r_domain
=
implode
(
"."
,
array_reverse
(
explode
(
"."
,
$domain_s
->
name
)));
if
(
substr
(
$r_host
name
,
0
,
strlen
(
$r_domain
))
==
$r_domain
)
{
if
(
substr
(
$r_host
domain
,
0
,
strlen
(
$r_domain
))
==
$r_domain
)
{
$matches
[
$dk
]
=
$domain_s
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment