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

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

OTM project ID

None

Client

Integrated Marijn

Plan date

None

Developer

Johan Liefers

Code reviewer

Koen Prins

Max. hours

None

Error message

None

Follow up date

None

Switches

None

Refiner

None

Story Points

2

Time tracking

3h 30m

Components

Fix versions

Priority

Major