diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -289,6 +289,11 @@ static void command_add(int argc, char **argv, char *rss_config_dir, char *html_ fprintf(stderr, "--name value can't be longer than %d characters\n", NAME_MAX_LEN); exit(1); } + + if(strcmp(media_name, ".") == 0 || strcmp(media_name, "..") == 0) { + fprintf(stderr, "--name can't be . or ..\n"); + exit(1); + } } if(start_after) { |