mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-12-31 08:44:25 +00:00
Fixed session_rid in funcspec
This commit is contained in:
@@ -758,8 +758,10 @@ func (h *Handler) replaceMetaVariables(sqlquery string, r *http.Request, userCtx
|
||||
}
|
||||
|
||||
if strings.Contains(sqlquery, "[rid_session]") {
|
||||
sessionID, _ := strconv.ParseInt(userCtx.SessionID, 10, 64)
|
||||
sqlquery = strings.ReplaceAll(sqlquery, "[rid_session]", fmt.Sprintf("%d", sessionID))
|
||||
sqlquery = strings.ReplaceAll(sqlquery, "[rid_session]", fmt.Sprintf("%d", userCtx.SessionRID))
|
||||
}
|
||||
if strings.Contains(sqlquery, "[id_session]") {
|
||||
sqlquery = strings.ReplaceAll(sqlquery, "[id_session]", userCtx.SessionID)
|
||||
}
|
||||
|
||||
if strings.Contains(sqlquery, "[method]") {
|
||||
|
||||
Reference in New Issue
Block a user