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 b0c465b commit 9f2a4b6Copy full SHA for 9f2a4b6
QiniuSDK/Collect/QNReportItem.m
@@ -37,6 +37,9 @@ - (void)setReportValue:(id _Nullable)value forKey:(NSString * _Nullable)key{
37
if (!value || !key || ![key isKindOfClass:[NSString class]]) {
38
return;
39
}
40
+ if ([value isKindOfClass:[NSString class]] && [(NSString *)value length] > 1024) {
41
+ value = [(NSString *)value substringToIndex:1024];
42
+ }
43
[self.keyValues setValue:value forKey:key];
44
45
0 commit comments