Invalid RegularExpressionValidator in umbraco 4.11.1 domain matching?
I was trying to set http://local-shortcuts:1379/en-us/test as one of the URLs in manage hostnames. But I kept getting an invalid hostname error. I stepped into umbraco's code and found this regex:
Invalid RegularExpressionValidator in umbraco 4.11.1 domain matching?
I was trying to set http://local-shortcuts:1379/en-us/test as one of the URLs in manage hostnames. But I kept getting an invalid hostname error. I stepped into umbraco's code and found this regex:
DomainValidator2.ValidationExpression = @"^(\*|((?i:http[s]?://)?([-\w]+(\.[-\w]+)*)(:\d+)?(/[-\w]*)?))$";
When regex skills are not too good but it looks to me that (/[-\w]*)? should have been ([-\/\w]*)? instead. The / character should be inside.
Am I correct?
is working on a reply...