From: Peter van Dijk Date: Tue, 16 Jan 2024 16:20:04 +0000 (+0100) Subject: also recognise uppercase hex X-Git-Tag: dnsdist-1.9.0-rc1~26^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8cbdf3eb597406fcdceda34da701e096cbe95cf;p=thirdparty%2Fpdns.git also recognise uppercase hex --- 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); }