Mercurial
comparison hg-web/main.c @ 107:1423044e3d58
Adding repo root.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sat, 03 Jan 2026 10:48:11 -0800 |
| parents | daf2d393741a |
| children | f07abbcd2ec5 |
comparison
equal
deleted
inserted
replaced
| 106:daf2d393741a | 107:1423044e3d58 |
|---|---|
| 100 char *safe_path = sanitize_path(decoded_path, arena); | 100 char *safe_path = sanitize_path(decoded_path, arena); |
| 101 | 101 |
| 102 Seobeo_Log(SEOBEO_INFO, "rel_path: %s\n", rel_path); | 102 Seobeo_Log(SEOBEO_INFO, "rel_path: %s\n", rel_path); |
| 103 Seobeo_Log(SEOBEO_INFO, "decoded_path: %s\n", decoded_path); | 103 Seobeo_Log(SEOBEO_INFO, "decoded_path: %s\n", decoded_path); |
| 104 Seobeo_Log(SEOBEO_INFO, "safe path: %s\n", safe_path); | 104 Seobeo_Log(SEOBEO_INFO, "safe path: %s\n", safe_path); |
| 105 Seobeo_Log(SEOBEO_INFO, "REPO_ROOT: %s\n", REPO_ROOT); | |
| 105 fflush(stdout); | 106 fflush(stdout); |
| 106 | 107 |
| 107 char full_path[MAX_PATH]; | 108 char full_path[MAX_PATH]; |
| 108 if (strlen(safe_path) > 0) | 109 if (strlen(safe_path) > 0) |
| 109 snprintf(full_path, sizeof(full_path), "%s/%s", REPO_ROOT, safe_path); | 110 snprintf(full_path, sizeof(full_path), "%s/%s", REPO_ROOT, safe_path); |
| 187 char *safe_path = sanitize_path(decoded_path, arena); | 188 char *safe_path = sanitize_path(decoded_path, arena); |
| 188 | 189 |
| 189 Seobeo_Log(SEOBEO_INFO, "rel_path: %s\n", rel_path); | 190 Seobeo_Log(SEOBEO_INFO, "rel_path: %s\n", rel_path); |
| 190 Seobeo_Log(SEOBEO_INFO, "decoded_path: %s\n", decoded_path); | 191 Seobeo_Log(SEOBEO_INFO, "decoded_path: %s\n", decoded_path); |
| 191 Seobeo_Log(SEOBEO_INFO, "safe path: %s\n", safe_path); | 192 Seobeo_Log(SEOBEO_INFO, "safe path: %s\n", safe_path); |
| 193 Seobeo_Log(SEOBEO_INFO, "REPO_ROOT: %s\n", REPO_ROOT); | |
| 192 fflush(stdout); | 194 fflush(stdout); |
| 193 | 195 |
| 194 if (strlen(safe_path) == 0) | 196 if (strlen(safe_path) == 0) |
| 195 { | 197 { |
| 196 char *error = Dowa_Arena_Allocate(arena, 64); | 198 char *error = Dowa_Arena_Allocate(arena, 64); |