Skip to content

Commit a8407d7

Browse files
Potential fix for code scanning alert no. 46: Information exposure through an error message
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Marc <[email protected]>
1 parent f849ec8 commit a8407d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh-proxy/src/main/java/io/sentrius/sso/sshproxy/controllers/RefreshController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ResponseEntity<String> refreshHostGroups() {
4343
} catch (Exception e) {
4444
log.error("Failed to refresh SSH proxy host groups", e);
4545
return ResponseEntity.internalServerError()
46-
.body("Failed to refresh host groups: " + e.getMessage());
46+
.body("Failed to refresh host groups.");
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)