diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-02-19 16:59:22 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-02-19 16:59:54 +0100 |
| commit | 0f889b409e20aea188e88b79b73ded992fc6af33 (patch) | |
| tree | 044d4954ad27ea9bf84e0385afa826f4050d4a4e | |
| parent | c198199a8196913b452461bea1a06438d667f1a2 (diff) | |
| download | slcl-0f889b409e20aea188e88b79b73ded992fc6af33.tar.gz | |
main.c: Add missing relative path check
| -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[] = "/.."; |
