Fix cap for pattern search

Currently, due to a tiny math error, the cap is variable (although
limited). This way it's really fixed and produces uniform results.

Bug: T191222
Change-Id: I8102db7894e5481a77e1a5771d9981258000731e
This commit is contained in:
Daimona Eaytoy 2018-04-02 18:31:57 +02:00
parent 6a518a7d6b
commit 17e444918b

View file

@ -143,7 +143,7 @@ class AbuseFilterPager extends TablePager {
htmlspecialchars( mb_substr(
$pattern,
$position - $minoffset + $length,
round( $remaining / 2 ) + 1,
$remaining - ( $position - $minoffset + $length ),
'UTF8'
)
);