| 481 | // zip packages are restricted to contain files below "packages/" only - unless the zip filename starts with "###", which additionally allows files below "config/" |
| 482 | |
| 483 | ziparchive *findzip(const char *name) |
| 484 | { |
| 485 | loopv(archives) if(!strcmp(name, archives[i]->name)) return archives[i]; |
| 486 | return NULL; |
| 487 | } |
| 488 | |
| 489 | const char *fixzipname(char *name) // check, if valid path + filename, based on mods/, return NULL if invalid |
| 490 | { |
no test coverage detected