]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
also recognise uppercase hex
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 16 Jan 2024 16:20:04 +0000 (17:20 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 16 Jan 2024 16:20:04 +0000 (17:20 +0100)
pdns/lua-record.cc

index 5b82aed8875775c40e1b475ed9101997ec668cdd..705fb3161fde6ab70258ad70ce1eca3497050485 100644 (file)
@@ -741,7 +741,7 @@ static void setupLuaRecords(LuaContext& lua) // NOLINT(readability-function-cogn
         auto input = parts[0];
 
         // allow a word without - in front, as long as it does not contain anything that could be a number
-        size_t nonhexprefix = strcspn(input.c_str(), "0123456789abcdef");
+        size_t nonhexprefix = strcspn(input.c_str(), "0123456789abcdefABCDEF");
         if (nonhexprefix > 0) {
           input = input.substr(nonhexprefix);
         }