]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
a previous commit broke the geobackend, as noted in ticket 205. Fixed: geobackend...
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 15 Nov 2008 21:56:02 +0000 (21:56 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 15 Nov 2008 21:56:02 +0000 (21:56 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1282 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/geobackend/geobackend.cc

index 44b5ad18205067825e778636e12bef4d21e6503e..19296160e2d88edeba3ee799e11ddbcaee19b0d2 100644 (file)
@@ -514,7 +514,7 @@ void GeoBackend::loadDirectorMap(GeoRecord &gr) {
                // Parse $ORIGIN
                if (line.substr(0, 7) == "$ORIGIN") {
                        gr.origin = line.substr(8);
-                       trim_right(gr.origin);
+                       trim_right_if(gr.origin, boost::is_any_of(" \t."));
                        gr.origin.insert(0, ".");
                        continue;
                }