[wp-trac] [WordPress Trac] #23418: banned names / illegal_names not being banned
WordPress Trac
noreply at wordpress.org
Fri Feb 8 04:41:53 UTC 2013
#23418: banned names / illegal_names not being banned
-----------------------------+--------------------------
Reporter: dohman | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Multisite
Version: 3.5.1 | Severity: normal
Keywords: |
-----------------------------+--------------------------
new site registrations are ignoring the banned names i add to the list in
network options.
out of the gate the default banned names function works and the system
does not let me register any of those default names. the illegal_names
value in the wp_sitemeta table is populated with:
'''''a:7:{i:0;s:3:"www";i:1;s:3:"web";i:2;s:4:"root";i:3;s:5:"admin";i:4;s:4:"main";i:5;s:6:"invite";i:6;s:13:"administrator";}'''''
when i add '''''seven eight nine''''' to the banned names field of the
network setting page and save the page, the banned names field is
populated with '''''www web root admin main invite administrator seven
eight nine''''', just how you would expect. but now the illegal_names
value in the db is '''''a:1:{i:0;s:61:"www web root admin main invite
administrator seven eight nine";}'''''
notice how the serialized array only has one string now instead of the
original multiple strings. once it is saved like this users can register
any site name including defaults like admin and root plus the new names i
added to the list.
my setup: two fresh multisite 3.5.1 installs. one is on a vps and the
other on a local xampp install. no plugins activated nor installed. using
twenty twelve theme. these are test installs.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23418>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list