From f8cbdf3eb597406fcdceda34da701e096cbe95cf Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 16 Jan 2024 17:20:04 +0100 Subject: [PATCH] also recognise uppercase hex --- pdns/lua-record.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 5b82aed887..705fb3161f 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -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); } -- 2.47.2