Skip to content

Commit

Permalink
Make location regular expression matching case-insensitive (Issue #1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Feb 28, 2025
1 parent 44350b0 commit acfc975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cups/usersys.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ _cupsSetDefaults(void)
if (*ptr == '/')
*ptr = '\0'; // Strip trailing '/'

if (regcomp(cg->filter_location_regex, cc.filter_location + 1, REG_EXTENDED))
if (regcomp(cg->filter_location_regex, cc.filter_location + 1, REG_EXTENDED | REG_ICASE))
{
DEBUG_puts("1_cupsSetDefaults: Bad regular expression in FilterLocation - results not filtered.");
free(cg->filter_location_regex);
Expand Down

0 comments on commit acfc975

Please sign in to comment.