From 951348aee545cffd0962c045c95bf84ef5d2d956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 11 Feb 2019 19:20:47 +0100 Subject: [PATCH] Ignore unknown chars from Base64 string --- src/ios/APPPrinterItem.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/APPPrinterItem.m b/src/ios/APPPrinterItem.m index 2db8ab6..42affe8 100644 --- a/src/ios/APPPrinterItem.m +++ b/src/ios/APPPrinterItem.m @@ -197,7 +197,7 @@ NSString* base64String = [url substringFromIndex:9]; return [[NSData alloc] initWithBase64EncodedString:base64String - options:0]; + options:NSDataBase64DecodingIgnoreUnknownCharacters]; } @end