We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When blocking by user agent, it would be ideal to do case insensitive match, or may be add an option to select case insensitive match in admin panel.
So if I specify "AskBot" in the user agent list, it should block "askbot" "askBot" "askBOT" all of them.
For now, I modified the code, function preg_match_wildcard($regex, $subject) { $regex = preg_quote($regex, '#'); $regex = str_replace('*', '.*', $regex); if(preg_match("#^$regex$#i", $subject)) { return true; } else { return false; } }
The call to preg_match has a "i" modifier attached to it.
The text was updated successfully, but these errors were encountered:
sent a Pull Request? I will merge it. I think it makes sense to have case insensitive match.
Sorry, something went wrong.
No branches or pull requests
When blocking by user agent, it would be ideal to do case insensitive match, or may be add an option to select case insensitive match in admin panel.
So if I specify "AskBot" in the user agent list, it should block "askbot" "askBot" "askBOT" all of them.
For now, I modified the code,
function preg_match_wildcard($regex, $subject) {
$regex = preg_quote($regex, '#');
$regex = str_replace('*', '.*', $regex);
if(preg_match("#^$regex$#i", $subject)) {
return true;
} else {
return false;
}
}
The call to preg_match has a "i" modifier attached to it.
The text was updated successfully, but these errors were encountered: