summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wildcard.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index 434421964..294541089 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -139,7 +139,8 @@ CoreExport bool match(bool case_sensitive, const char *str, const char *mask, bo
{
if (use_cidr_match && MatchCIDR(str, mask, true))
return true;
- return csmatch(str, mask);
+
+ return case_sensitive ? csmatch(str, mask) : match(str, mask);
}
CoreExport bool match(bool case_sensitive, const char *str, const char *mask)