mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Merge "Fix param validation in ViewEdit"
This commit is contained in:
commit
fc3349df1f
|
@ -31,6 +31,16 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$out->addHelpLink( 'Extension:AbuseFilter/Rules format' );
|
||||
|
||||
$filter = $this->mFilter;
|
||||
if ( !is_numeric( $filter ) ) {
|
||||
$out->addHTML(
|
||||
Xml::tags(
|
||||
'p',
|
||||
null,
|
||||
Html::errorBox( $this->msg( 'abusefilter-edit-badfilter' )->parse() )
|
||||
)
|
||||
);
|
||||
return;
|
||||
}
|
||||
$history_id = $this->mHistoryID;
|
||||
if ( $this->mHistoryID ) {
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
|
|
Loading…
Reference in a new issue