Fix invalid namespace restriction when js is disabled
authorDayllan Maza <dmaza@wikimedia.org>
Thu, 28 Mar 2019 20:02:44 +0000 (16:02 -0400)
committerDmaza <dmaza@wikimedia.org>
Fri, 29 Mar 2019 19:15:56 +0000 (19:15 +0000)
commit3b547150d8b20341fd8a196363d1d1ce95af0754
treeeb17b908a5d23181995a62e0070b40022f5696e4
parentad694f04499071f80e2a9240b03e6e3b06c63617
Fix invalid namespace restriction when js is disabled

When JS is disabled on Special:Block you were able to specify
any namespace as part of the namespace restrictions field. This patch
rejects any virtual namespace submitted on that field

Bug: T216831
Change-Id: If09c43e5f836e1fdd9438b856d7f44f434c29fe1
includes/htmlform/fields/HTMLNamespacesMultiselectField.php