Revision: 27934
http://sourceforge.net/p/bibdesk/svn/27934
Author: hofman
Date: 2022-09-26 09:25:09 +0000 (Mon, 26 Sep 2022)
Log Message:
-----------
always ignore password for search group URL
Modified Paths:
--------------
trunk/bibdesk/BDSKSearchGroup.m
Modified: trunk/bibdesk/BDSKSearchGroup.m
===================================================================
--- trunk/bibdesk/BDSKSearchGroup.m 2022-09-26 09:01:33 UTC (rev 27933)
+++ trunk/bibdesk/BDSKSearchGroup.m 2022-09-26 09:25:09 UTC (rev 27934)
@@ -354,15 +354,16 @@
}
[components setPercentEncodedPath:[NSString stringWithFormat:@"/%@;%@",
escapeDatabaseOrName([serverInfo database]), escapeDatabaseOrName([serverInfo
name])]];
if ([serverInfo isZoom]) {
- NSMutableArray *query = [NSMutableArray array];
+ NSMutableArray *query = [NSMutableArray array];
[[serverInfo options] enumerateKeysAndObjectsUsingBlock:^(NSString
*key, NSString *value, BOOL *stop){
if ([key isEqualToString:@"removeDiacritics"])
value = [serverInfo removeDiacritics] ? @"1" : @"0";
- else if (username && ([key isEqualToString:@"username"] || [key
isEqualToString:@"password"]))
+ else if ([key isEqualToString:@"username"] || [key
isEqualToString:@"password"])
return;
[query addObject:[NSString stringWithFormat:@"%@=%@", key, [value
stringByAddingPercentEscapesForQueryTerm]]];
}];
- [components setPercentEncodedQuery:[query
componentsJoinedByString:@"&"]];
+ if ([query count])
+ [components setPercentEncodedQuery:[query
componentsJoinedByString:@"&"]];
} else if ([serverInfo isISI] && [serverInfo isLite]) {
[components setPercentEncodedQuery:@"lite=1"];
}
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