Skip to content

[Bug]: Editing a DNS-Record removes "Zone" from Name field #958

@nudelchef

Description

@nudelchef

Describe the problem

When Editing any DNS record, which contains the Zone-Name inside its Name field, the Zone-Name gets replaced by empty string. (this happens for any occurrence, not just the last)

Example Record:

Image

Editing this Record:

Image

this also happens, when the Zone is at the beginning, or somewhere in between inside the Name field

Steps to reproduce

Create a Record for any domain, that contains the zone name inside the name field at any location:

Zone: example.com
Name: test.example.com.test.example.com
Typ: ...
Inhalt: ...

When editing, this Record it shows:

Zone: example.com
Name: test..test
Typ: ...
Inhalt: ...

The Expected Result would be

Zone: example.com
Name: test.example.com.test
Typ: ...
Inhalt: ...

(only replacing the last occurrence once)

Poweradmin version

v4.0.4

Database

MariaDB

Additional information (optional)

No response

Metadata

Metadata

Assignees

Labels

dnsDNS Management

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions