WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Banned Names list ignored (8 posts)

  1. dohman
    Member
    Posted 1 year ago #

    i have a multisite 3.51 set up on a linux vps. the problem is that sites can be registered and created for names i have in the Banned Names list under network settings.

    the illegal_names meta key in the wp_sitemeta table has a value of a:1:{i:0;s:50:"www web root admin main invite administrator files test1 test2 test3";}

    i tried registering banned names as super admin and as a logged-out new user in another browser, both registered banned names with success.

    does anybody have any ideas of what could be causing this? am i missing something? i don't see any network settings that need to be checked in order to enforce the banned names.

    the domain is werpo.org if you want to give it a shot with one of the banned names listed above.

    thanks much

  2. dohman
    Member
    Posted 1 year ago #

    i've been digging into the array that is being saved for the banned names in my network settings page. the serialized array being saved into the wp_sitemeta table contains only a single string value like this:

    a:1:{i:0;s:50:"www web root admin main invite administrator files test1 test2 test3";}

    when it is saved this way it does not work. any of the banned names can be registered. but then when i manually go into the db and edit the array to contain multiple string values (like below) the banned names function works.

    a:11:{i:0;s:3:"www";i:1;s:3:"web";i:2;s:4:"root";i:3;s:4:"admin";i:4;s:4:"main";i:5;s:6:"invite";i:6;s:13:"administrator";i:7;s:5:"files";i:8;s:5:"test1";i:9;s:5:"test2";i:10;s:5:"test3";}

    i have not dug into the code yet to isolate where this happens. this is also a widely used function and i haven't seen the topic being raised elsewhere. i don't know how it could be just me though. this is a test install of multisite. i have zero plugins & themes installed. i am running PHP version 5.2.9 and MySQL version 5.0.96-community.

    if anyone has some insight i would greatly appreciate it. the last ticket i see in trac related to illegal_names & serializing was 4 months ago.

    the next thing i'll do is see if i can duplicate this in another multisite install. if someone is game to take a gander at their wp_sitemeta table and look at the illegal_names value and see what the array looks like, then test registering a banned name on it too, that would be great.

    thanks

  3. Are you using BuddyPress?

  4. dohman
    Member
    Posted 1 year ago #

    no, its an empty install for testing. no plugins installed nor activated. i also have a fresh xampp install doing the same thing.

  5. Open a new trac ticket for this one. Something's busted.

  6. dohman
    Member
    Posted 1 year ago #

    thanks. i'll submit a trac ticket this evening. :) marking this resolved for now. will see what comes from trac.

  7. ExNube
    Member
    Posted 1 year ago #

    Can you post link to where you are following trac???

    thanks

  8. dohman
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic