Skip to content

Commit

Permalink
Fix deprecated use of req.path.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Sep 7, 2024
1 parent 3634882 commit a8af0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibelog/webadmin.d
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ logInfo("FILE %s", f.filename.name);
User[string] users = m_ctrl.db.getAllUsers();
auto pu = uname in users;
if (pu is null) {
redirect(m_subPath ~ "login?"~formEncode(["redirect": req.path]));
redirect(m_subPath ~ "login?"~formEncode(["redirect": (cast(PosixPath)req.requestPath).toString()]));
return AuthInfo.init;
}
enforceHTTP(pu !is null, HTTPStatus.forbidden, "Not authorized to access this page.");
Expand Down

0 comments on commit a8af0df

Please sign in to comment.