Revision: 29503
http://sourceforge.net/p/bibdesk/svn/29503
Author: hofman
Date: 2025-08-30 22:16:45 +0000 (Sat, 30 Aug 2025)
Log Message:
-----------
make sure necessary percent encodings are added for redirect request
Modified Paths:
--------------
trunk/bibdesk/BDSKBibDeskProtocol.m
Modified: trunk/bibdesk/BDSKBibDeskProtocol.m
===================================================================
--- trunk/bibdesk/BDSKBibDeskProtocol.m 2025-08-30 22:06:26 UTC (rev 29502)
+++ trunk/bibdesk/BDSKBibDeskProtocol.m 2025-08-30 22:16:45 UTC (rev 29503)
@@ -143,7 +143,7 @@
[self loadData:data MIMEType:MIMEType];
} else if ([HELP_SPECIFIER isCaseInsensitiveEqual:[[resourceSpecifier
pathComponents] firstObject]]) {
// when there's no "//" the URL we get has percent escapes including
in particular the # character, which would we don't want
- NSString *URLString = [NSString stringWithFormat:@"%@://%@",
BDSKBibDeskScheme, [resourceSpecifier stringByRemovingPercentEncoding]];
+ NSString *URLString = [NSString stringWithFormat:@"%@://%@",
BDSKBibDeskScheme, [[resourceSpecifier stringByRemovingPercentEncoding]
stringByAddingMinimalPercentEscapes]];
NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc]
initWithURL:theURL statusCode:301 HTTPVersion:@"HTTP/1.1"
headerFields:@{@"Location": URLString}];
NSMutableURLRequest *redirectRequest = [request mutableCopy];
[redirectRequest setURL:[NSURL
URLWithStringByNormalizingPercentEscapes:URLString]];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit