Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ios/Classes/TiWebdialogModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ - (void)safariViewControllerDidFinish:(SFSafariViewController *)controller
- (SFSafariViewController *)safariController:(NSString *)url withEntersReaderIfAvailable:(BOOL)entersReaderIfAvailable andBarCollapsingEnabled:(BOOL)barCollapsingEnabled
{
if (_safariController == nil) {
NSString *encodedURL = [url stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLQueryAllowedCharacterSet];
NSMutableCharacterSet *allowedCharacters = [[NSCharacterSet URLQueryAllowedCharacterSet] mutableCopy];
[allowedCharacters addCharactersInString:@"#"]; // https://github.com/tidev/titanium-web-dialog/issues/329
NSString *encodedURL = [url stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters];
NSURL *safariURL = [NSURL URLWithString:encodedURL];

SFSafariViewControllerConfiguration *config = [[SFSafariViewControllerConfiguration alloc] init];
Expand Down
2 changes: 1 addition & 1 deletion ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 4.0.0
version: 4.0.1
apiversion: 2
architectures: arm64 x86_64
description: titanium-web-dialog
Expand Down