From 719005674f4e9264edb5d1320183b17555450809 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Fri, 11 Aug 2023 10:29:03 +0200 Subject: [PATCH] LDEV-4126 populate cgi.auth_user as cgi.remote_user https://luceeserver.atlassian.net/browse/LDEV-4126 --- core/src/main/java/lucee/runtime/type/scope/CGIImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/lucee/runtime/type/scope/CGIImpl.java b/core/src/main/java/lucee/runtime/type/scope/CGIImpl.java index 0f76261b086..303ff023369 100755 --- a/core/src/main/java/lucee/runtime/type/scope/CGIImpl.java +++ b/core/src/main/java/lucee/runtime/type/scope/CGIImpl.java @@ -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()));