Skip to content

Commit

Permalink
LDEV-4126 populate cgi.auth_user as cgi.remote_user
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Aug 11, 2023
1 parent 5da69c9 commit 7190056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/lucee/runtime/type/scope/CGIImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public Object get(PageContext pc, Collection.Key key, Object defaultValue) {
try {
if (first == 'a') {
if (key.equals(KeyConstants._auth_type)) return store(key, toString(req.getAuthType()));
if (key.equals(KeyConstants._auth_user)) return store(key, toString(req.getRemoteUser()));
}
else if (first == 'c') {
if (key.equals(KeyConstants._context_path)) return store(key, toString(req.getContextPath()));
Expand Down

0 comments on commit 7190056

Please sign in to comment.