From: Christian Hofstaedtler Date: Mon, 24 Nov 2014 13:40:31 +0000 (+0100) Subject: secpoll: Replace ~ with _, too X-Git-Tag: dnsdist-1.0.0-alpha1~59^2~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=666c4c2207094e9463157600d4ac1942991b204e;p=thirdparty%2Fpdns.git secpoll: Replace ~ with _, too Debian backports versions use '~' in the version number. --- diff --git a/pdns/secpoll-auth.cc b/pdns/secpoll-auth.cc index f762218e4d..02f8b7ea86 100644 --- a/pdns/secpoll-auth.cc +++ b/pdns/secpoll-auth.cc @@ -131,6 +131,7 @@ void doSecPoll(bool first) query+='.'; boost::replace_all(query, "+", "_"); + boost::replace_all(query, "~", "_"); vector ret; diff --git a/pdns/secpoll-recursor.cc b/pdns/secpoll-recursor.cc index 16b74ac502..2d9e49232e 100644 --- a/pdns/secpoll-recursor.cc +++ b/pdns/secpoll-recursor.cc @@ -29,6 +29,7 @@ void doSecPoll(time_t* last_secpoll) query+='.'; boost::replace_all(query, "+", "_"); + boost::replace_all(query, "~", "_"); int res=sr.beginResolve(query, QType(QType::TXT), 1, ret); if(!res && !ret.empty()) {