diff options
| -rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -393,7 +393,11 @@ end: static bool path_isrel(const char *const path) { - if (!strcmp(path, "..") || !strcmp(path, ".") || strstr(path, "/../")) + if (!strcmp(path, "..") + || !strcmp(path, ".") + || !strcmp(path, "./") + || !strcmp(path, "../") + || strstr(path, "/../")) return true; static const char suffix[] = "/.."; |
