Tag 'none' is not allowed

This commit is contained in:
Thomas Jensen 2021-06-13 15:39:05 +02:00
parent 2d3a842728
commit 252d080403
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB

View File

@ -710,7 +710,8 @@ int tag_is_valid(char *tag)
&& strspn(tag, "abcdefghijklmnopqrstuvwxyz-0123456789") == len && strspn(tag, "abcdefghijklmnopqrstuvwxyz-0123456789") == len
&& strchr("abcdefghijklmnopqrstuvwxyz", tag[0]) != NULL && strchr("abcdefghijklmnopqrstuvwxyz", tag[0]) != NULL
&& tag[len - 1] != '-' && tag[len - 1] != '-'
&& strstr(tag, "--") == NULL; && strstr(tag, "--") == NULL
&& strcmp(tag, "none") != 0;
} }