diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-06-13 09:38:00 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-06-13 09:38:00 +0200 |
| commit | 30e9bcc492ffa81dabfd316a295ff4d20daaec3b (patch) | |
| tree | d2ff6ebeb843a66497bd6364396f5077cd53ee79 /main.c | |
| parent | 3db69a5f7fdf2db48d512f60a9afe6b894877dba (diff) | |
| download | slcl-30e9bcc492ffa81dabfd316a295ff4d20daaec3b.tar.gz | |
Previously, HTTP error 403 was returned if an unauthenticated user
attempted to access a file or directory inside /user/. However, this
error message confusing because, most often, it was caused by legitimate
users with missing or expired HTTP cookies. While the usual workaround
was to access /index.html and authenticate, this was too confusing to
some users.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1021,7 +1021,7 @@ static int getnode(const struct http_payload *const p, if (auth_cookie(a, &p->cookie)) { fprintf(stderr, "%s: auth_cookie failed\n", __func__); - return page_forbidden(r); + return page_missing_login(r); } else if (path_invalid(resource)) { |
