[skip ci] Fingerprint validation

This commit is contained in:
Brahim Hadriche committed 2025-09-16 21:48:21 -04:00
1 parent 8329fef6c1
commit ae64f73c67
2 files changed
+13 -4

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
- Nothing worth mentioning yet.
## [0.41.10] - 2025-09-16
### Fixed
@@ -60,11 +60,16 @@ namespace Sentry
}
if event.fingerprint <> invalid
if IsString(event.fingerprint)
eventPayload.fingerprint = [event.fingerprint]
else if IsArray(event.fingerprint)
eventPayload.fingerprint = event.fingerprint
fingerprint = event.fingerprint
if not IsArray(fingerprint)
fingerprint = [fingerprint]
end if
for i = 0 to fingerprint.Count() - 1
if not IsString(fingerprint[i])
fingerprint[i] = ToString(fingerprint[i])
end if
end for
eventPayload.fingerprint = fingerprint
end if
payload += FormatJson(eventPayload) + `\n`