We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d1f37 commit 8802300Copy full SHA for 8802300
pkg/abap/build/connector.go
@@ -76,10 +76,10 @@ func (conn *Connector) GetToken(appendum string) error {
76
log.RegisterSecret(token)
77
78
for _, cookie := range response.Header.Values("Set-Cookie") {
79
- if strings.HasPrefix(cookie, "SAP_SESSIONID_") {
80
- // SAP_SESSIONID_SID_123=YiWizhmMljBNOkKxJkG-flmT9wWfetHwifb6Fj5zqUI%3d; path=/; secure; HttpOnly
81
- id := cookie[strings.Index(cookie, "=")+1 : strings.Index(cookie, "; ")]
82
- log.RegisterSecret(id)
+ if strings.HasPrefix(cookie, "SAP_SESSIONID_") || strings.HasPrefix(cookie, "sap-XSRF_") {
+ nameValuePair, _, _ := strings.Cut(cookie, "; ")
+ _, cookieValue, _ := strings.Cut(nameValuePair, "=")
+ log.RegisterSecret(cookieValue)
83
}
84
85
0 commit comments