Skip to content

Commit

Permalink
Merge pull request #712 from adotkhan/nsurl-fix
Browse files Browse the repository at this point in the history
Fix: iOS PsiphonTunnel returning null if file path contains spaces
  • Loading branch information
rod-hynes authored Nov 27, 2024
2 parents 15c34a0 + 21ff4cd commit d005b42
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,20 @@ + (NSURL*)defaultDataRootDirectoryWithError:(NSError**)err {

// See comment in header
+ (NSURL*)homepageFilePath:(NSURL*)dataRootDirectory {
return [NSURL URLWithString:GoPsiHomepageFilePath(dataRootDirectory.path)];
return [NSURL fileURLWithPath:GoPsiHomepageFilePath(dataRootDirectory.path)
isDirectory:FALSE];
}

// See comment in header
+ (NSURL*)noticesFilePath:(NSURL*)dataRootDirectory {
return [NSURL URLWithString:GoPsiNoticesFilePath(dataRootDirectory.path)];
return [NSURL fileURLWithPath:GoPsiNoticesFilePath(dataRootDirectory.path)
isDirectory:FALSE];
}

// See comment in header
+ (NSURL*)olderNoticesFilePath:(NSURL*)dataRootDirectory {
return [NSURL URLWithString:GoPsiOldNoticesFilePath(dataRootDirectory.path)];
return [NSURL fileURLWithPath:GoPsiOldNoticesFilePath(dataRootDirectory.path)
isDirectory:FALSE];
}

// See comment in header
Expand Down

0 comments on commit d005b42

Please sign in to comment.