We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c59402c + a9f1065 commit 1e25e6dCopy full SHA for 1e25e6d
src/EventSubscriber/RateLimitSubscriber.php
@@ -172,7 +172,7 @@ private function logCrawlers(): void {
172
173
// If requesting the same language as the target project, ignore.
174
// FIXME: This has side-effects (T384711#10759078)
175
- if ( preg_match( "/[=\/]$useLang.?wik/", $this->uri ) === 1 ) {
+ if ( preg_match( '/[=\/]' . preg_quote( $useLang ) . '.?wik/', $this->uri ) === 1 ) {
176
return;
177
}
178
0 commit comments