mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-14 12:06:06 +00:00
domain stripping was not limited to the end of a name
This commit is contained in:
@ -130,7 +130,7 @@ def display_record_name(data):
|
||||
if record_name == domain_name:
|
||||
return '@'
|
||||
else:
|
||||
return record_name.replace('.'+domain_name, '')
|
||||
return re.sub('\.{}$'.format(domain_name), '', record_name)
|
||||
|
||||
|
||||
def display_master_name(data):
|
||||
|
Reference in New Issue
Block a user