mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Merge "Don't send long patterns with GET"
This commit is contained in:
commit
b9c697ef7c
|
@ -31,7 +31,10 @@ class AbuseFilterChangesList extends OldChangesList {
|
|||
}
|
||||
|
||||
$examineParams = [];
|
||||
if ( $this->testFilter ) {
|
||||
if ( $this->testFilter && strlen( $this->testFilter ) < 2000 ) {
|
||||
// Since this is GETed, don't send it if it's too long to prevent broken URLs 2000 is taken from
|
||||
// https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-
|
||||
// in-different-browsers/417184#417184
|
||||
$examineParams['testfilter'] = $this->testFilter;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue