handle .tgz #44, ignore files inside archives for stats page

This commit is contained in:
2020-05-24 10:10:28 -04:00
parent ee0f71f4d3
commit dd2397ef5c
6 changed files with 9 additions and 4 deletions

View File

@@ -24,6 +24,10 @@ typedef struct {
void fill_tables(cJSON *document, UNUSED(const char uuid_str[UUID_STR_LEN])) {
if (cJSON_GetObjectItem(document, "parent") != NULL) {
return;
}
const char *json_path = cJSON_GetObjectItem(document, "path")->valuestring;
char *path = malloc(strlen(json_path) + 1);
strcpy(path, json_path);