X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcidr.cpp;h=b245a15527e7a25077f855ceae2df3c0be33e52c;hb=1aa4fa1496bd8a71ce6fe5f5f82eb4b951b0c131;hp=3338756655b6e8e5f2e42abe0c1545e90969ce00;hpb=e5f96b0564a63fff73485dd552dfaefe534ed080;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cidr.cpp b/src/cidr.cpp index 333875665..b245a1552 100644 --- a/src/cidr.cpp +++ b/src/cidr.cpp @@ -68,7 +68,7 @@ bool irc::sockets::MatchCIDR(const std::string &address, const std::string &cidr const std::string::size_type per_pos = cidr_copy.rfind('/'); if ((per_pos == std::string::npos) || (per_pos == cidr_copy.length()-1) || (cidr_copy.find_first_not_of("0123456789", per_pos+1) != std::string::npos) - || (cidr_copy.find_first_not_of("0123456789abcdef.:") < per_pos)) + || (cidr_copy.find_first_not_of("0123456789abcdefABCDEF.:") < per_pos)) { // The CIDR mask is invalid return false;