From 4b20b746fb2711726172217214b98f1a22ec5460 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 7 Sep 2016 21:47:05 +0200 Subject: [PATCH] fix zone2ldap in one other place --- pdns/zone2ldap.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/zone2ldap.cc b/pdns/zone2ldap.cc index e17d2f2a63..c94e444484 100644 --- a/pdns/zone2ldap.cc +++ b/pdns/zone2ldap.cc @@ -136,8 +136,8 @@ static void callback_tree( unsigned int domain_id, const DNSName &domain, const cout << "changetype: modify" << endl; cout << "add: " << qtype << "Record" << endl; } - - cout << qtype << "Record: " << stripDot( content ) << endl << endl; + string stripped=stripDot(content); + cout << qtype << "Record: " << stripped << ((stripped.empty() || stripped[stripped.size()-1]==' ') ? "." : "") << endl << endl; } -- 2.47.2