diff --git a/backend/newimageid_ez.in b/backend/newimageid_ez.in index 30e789e9443f7dde61670ca0b134d3d2fe93481f..95972d1f9098b3de6cf9f77bb61f21bee21b9e53 100644 --- a/backend/newimageid_ez.in +++ b/backend/newimageid_ez.in @@ -531,6 +531,9 @@ elsif (! $isadmin) { UserError("Path: Invalid Path"); } } +if (-d $newimageid_args{"path"}) { + UserError("Path: invalid path, its a directory"); +} # We allow loadpart=0 for whole-disk images in the Long Form, and it uses the # same table_regex checking patterns. Here "wholedisk" is a separate checkbox.