aboutsummaryrefslogtreecommitdiff
path: root/networking/httppost.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httppost.c')
-rw-r--r--networking/httppost.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/httppost.c b/networking/httppost.c
index 26934ec..6b8b533 100644
--- a/networking/httppost.c
+++ b/networking/httppost.c
@@ -150,6 +150,15 @@ int httppost_main(int argc, char *argv[])
}
url= argv[optind];
+ if (atlas_id)
+ {
+ if (!validate_atlas_id(atlas_id))
+ {
+ fprintf(stderr, "bad atlas ID '%s'", atlas_id);
+ return 1;
+ }
+ }
+
if (maxpostsizestr)
{
maxpostsize= strtoul(maxpostsizestr, &check, 0);