domain_new.go: reject domains with /

This commit is contained in:
Adhityaa Chandrasekar
2019-05-01 18:48:25 -04:00
parent feeda79923
commit a9c48a8394
2 changed files with 6 additions and 0 deletions

View File

@ -45,3 +45,4 @@ var errorThreadLocked = errors.New("This thread is locked. You cannot add new co
var errorDatabaseMigration = errors.New("Encountered error applying database migration.")
var errorNoSuchUnsubscribeSecretHex = errors.New("Invalid unsubscribe link.")
var errorEmptyPaths = errors.New("Empty paths field.")
var errorInvalidDomain = errors.New("Invalid domain name. Do not include the URL path after the forward slash.")