Check that database entries in the zip have a .json suffix and a non-empty base name before slicing the extension off. This prevents a panic from index-out-of-range when the filename is too short. Also use TrimPrefix instead of ReplaceAll for correctness. |
||
|---|---|---|
| .. | ||
| auth | ||
| avatar | ||
| background | ||
| dump | ||
| keyvalue | ||
| migration | ||