Merge "Don't send long patterns with GET"

This commit is contained in:
jenkins-bot 2019-01-20 14:20:31 +00:00 committed by Gerrit Code Review
commit b9c697ef7c

View file

@ -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;
}