Channel domain validation does not allow localhost

Description

The validate function of Channel/Channel.php should be improved:

  • All characters (including international) that can be in a domain should be accepted (such as a-z, 0-9, period, and international characters)

  • Characters that can't be in a domain name such as "/" should not be allowed

  • An empty primary domain is also OK

Valid:
example.com
localhost
افغانستا.icom.museum
belgië.icom.museum

Invalid:
http://example.com

Technical tasks

None

Deployment actions

None

Activity

Show:
API
October 20, 2016, 1:06 PM

.Schatting van 3.5 uur is geaccepteerd door Integrated Marijn.

API
November 3, 2016, 2:32 PM

.Notificatie oplevering gestuurd naar Integrated Marijn (marijn@e-active.nl)

Assignee

Unassigned

Client

Integrated Marijn

Fix versions

Configure