Opened 2 years ago

Last modified 7 months ago

#17397 reopened defect (bug)

Inconsistency in allowed site addresses

Reported by: johnbillion Owned by:
Priority: normal Milestone: Awaiting Review
Component: Multisite Version: 3.1
Severity: minor Keywords: needs-patch
Cc:

Description

The rules for allowed characters in a site address differ between when you add a new site and when you edit an existing site.

Steps to reproduce:

  1. Go to Network Admin -> Sites -> Add New
  2. Enter foo.bar as the site address and hit save. The address will be rejected as containing invalid characters.
  3. Edit an existing site instead, and enter foo.bar.yourdomain.com as the domain. The address will be accepted just fine.

Having written that out, maybe this isn't a valid bug because when adding a site you're entering the site address, but when you're editing a site you're editing the complete domain name. Hmm. I'll open it anyway and see what people think.

My core issue is that I'd like to be able to add sites that use fourth-level subdomains (eg foo.bar.baz.com when the main site is at baz.com). Currently I have to enter a different site address then go in and edit it to the desired domain.

Change History (5)

  • Resolution set to duplicate
  • Status changed from new to closed

Gonna close this as a dupe of #17948 where this issue is covered and being worked on by wpdavis.

comment:2 follow-up: ↓ 4   SergeyBiryukov22 months ago

Is it actually covered by that ticket? Overhaul of the signup process sounds like a different thing to me.

  • Resolution duplicate deleted
  • Status changed from closed to reopened

comment:4 in reply to: ↑ 2   johnbillion22 months ago

Replying to SergeyBiryukov:

Is it actually covered by that ticket? Overhaul of the signup process sounds like a different thing to me.

Whoops. I read this comment which covers username restrictions while I was thinking about site name restrictions.

  • Keywords needs-patch added; 2nd-opinion removed

There is a legitimate use case for Super admins adding subdomains with one or more '.' as long as they are not two together.

Note: See TracTickets for help on using tickets.