iOS: show unescaped filename in email

Displayed name in the email was using the escaped filename rather than the filename passed as the name parameter.
This commit is contained in:
chrisgarrity 2016-09-19 17:10:10 -04:00
parent e035b0f86e
commit 72b807726b
2 changed files with 28 additions and 29 deletions

View file

@ -215,7 +215,7 @@ NSMutableDictionary *mediastrings;
if (ok) { if (ok) {
if (shareType == 0) { if (shareType == 0) {
[HTML showShareEmail:url withName:fullname withSubject:emailSubject withBody:emailBody]; [HTML showShareEmail:url withName:filename withSubject:emailSubject withBody:emailBody];
} else { } else {
[HTML showShareAirdrop:url]; [HTML showShareAirdrop:url];
} }
@ -333,4 +333,3 @@ NSMutableDictionary *mediastrings;
} }
@end @end

View file

@ -329,7 +329,7 @@ JSContext *js;
MFMailComposeViewController *mailComposeViewController = [[MFMailComposeViewController alloc] init]; MFMailComposeViewController *mailComposeViewController = [[MFMailComposeViewController alloc] init];
mailComposeViewController.mailComposeDelegate = self; mailComposeViewController.mailComposeDelegate = self;
NSString* filename = [[projectURL absoluteString] lastPathComponent]; NSString* filename = name;
[mailComposeViewController setSubject: subject]; [mailComposeViewController setSubject: subject];
[mailComposeViewController setMessageBody:body isHTML:YES]; [mailComposeViewController setMessageBody:body isHTML:YES];