mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
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:
parent
6a518a7d6b
commit
17e444918b
|
@ -143,7 +143,7 @@ class AbuseFilterPager extends TablePager {
|
|||
htmlspecialchars( mb_substr(
|
||||
$pattern,
|
||||
$position - $minoffset + $length,
|
||||
round( $remaining / 2 ) + 1,
|
||||
$remaining - ( $position - $minoffset + $length ),
|
||||
'UTF8'
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue