Skip to content

Commit 5b4fc0f

Browse files
committed
webfilename instead of filename in buffer_sprintf
1 parent 36c1304 commit 5b4fc0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/web_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ int mysendfile(struct web_client *w, char *filename)
295295
// check if the file is owned by expected user
296296
if(stat.st_uid != web_files_uid()) {
297297
error("%llu: File '%s' is owned by user %d (expected user %d). Access Denied.", w->id, webfilename, stat.st_uid, web_files_uid());
298-
buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", filename);
298+
buffer_sprintf(w->response.data, "Access to file '%s' is not permitted.", webfilename);
299299
return 403;
300300
}
301301

0 commit comments

Comments
 (0)