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 2e99f67 commit 5ea6d92Copy full SHA for 5ea6d92
Sources/Classes/core/View/MiniAppViewHandler.swift
@@ -939,7 +939,8 @@ extension MiniAppViewHandler {
939
// swiftlint:enable file_length function_body_length
940
941
extension String {
942
- func base64Encoded() -> String? {
943
- data(using: .utf8)?.base64EncodedString()
944
- }
+ func base64Encoded() -> String? {
+ guard let data = data(using: .nonLossyASCII) else { return "" }
+ return data.base64EncodedString()
945
+ }
946
}
0 commit comments