Revision: 26804 http://sourceforge.net/p/bibdesk/svn/26804 Author: hofman Date: 2021-09-05 16:46:31 +0000 (Sun, 05 Sep 2021) Log Message: ----------- standardize path
Modified Paths: -------------- trunk/bibdesk/BDSKLinkedFile.m Modified: trunk/bibdesk/BDSKLinkedFile.m =================================================================== --- trunk/bibdesk/BDSKLinkedFile.m 2021-09-05 08:50:45 UTC (rev 26803) +++ trunk/bibdesk/BDSKLinkedFile.m 2021-09-05 16:46:31 UTC (rev 26804) @@ -634,7 +634,7 @@ BOOL hasBaseRef = BDSKPathToFSRef(basePath, &baseRef); anAlias = [BDSKAlias newWithFSRef:fileRef baseRef:hasBaseRef ? &baseRef : NULL]; } else if (relativePath && basePath) { - NSString *path = [relativePath isAbsolutePath] ? relativePath : [basePath stringByAppendingPathComponent:relativePath]; + NSString *path = [relativePath isAbsolutePath] ? relativePath : [[basePath stringByAppendingPathComponent:relativePath] stringByStandardizingPath]; anAlias = [BDSKAlias newWithPath:path basePath:basePath]; } if (anAlias != NULL) { @@ -655,7 +655,7 @@ if (fileURL) { data = BDSKCreateBookmarkDataFromURL(fileURL, baseURL); } else if (relativePath && basePath) { - NSURL *aURL = [NSURL fileURLWithPath:[relativePath isAbsolutePath] ? relativePath : [[basePath stringByAppendingPathComponent:relativePath] stringByNormalizingPath]]; + NSURL *aURL = [NSURL fileURLWithPath:[relativePath isAbsolutePath] ? relativePath : [[basePath stringByAppendingPathComponent:relativePath] stringByStandardizingPath]]; data = BDSKCreateBookmarkDataFromURL(aURL, baseURL); } if (data == nil && [alias isKindOfClass:[NSData class]]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit