From c60745b8a3ebab3260b0e8a43fb58cabeff51b7a Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 5 Nov 2018 09:49:51 -0800 Subject: [PATCH] fix: use NSURL path for receipt url (#15355) --- atom/browser/mac/in_app_purchase.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/mac/in_app_purchase.mm b/atom/browser/mac/in_app_purchase.mm index 1ea0ced6863..c5568ba0269 100644 --- a/atom/browser/mac/in_app_purchase.mm +++ b/atom/browser/mac/in_app_purchase.mm @@ -167,7 +167,7 @@ void FinishTransactionByDate(const std::string& date) { std::string GetReceiptURL() { NSURL* receiptURL = [[NSBundle mainBundle] appStoreReceiptURL]; if (receiptURL != nil) { - return [[receiptURL absoluteString] UTF8String]; + return std::string([[receiptURL path] UTF8String]); } else { return ""; }