Revision: 27959
          http://sourceforge.net/p/bibdesk/svn/27959
Author:   hofman
Date:     2022-09-29 15:09:03 +0000 (Thu, 29 Sep 2022)
Log Message:
-----------
use macros and mace sure removeDiacritics is set

Modified Paths:
--------------
    trunk/bibdesk/BDSKServerInfo.m

Modified: trunk/bibdesk/BDSKServerInfo.m
===================================================================
--- trunk/bibdesk/BDSKServerInfo.m      2022-09-29 14:58:40 UTC (rev 27958)
+++ trunk/bibdesk/BDSKServerInfo.m      2022-09-29 15:09:03 UTC (rev 27959)
@@ -367,10 +367,11 @@
     if ([self isZoom]) {
         NSMutableArray *query = [NSMutableArray array];
         [options enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSString 
*value, BOOL *stop){
-            if ([key isEqualToString:@"removeDiacritics"])
-                value = [self removeDiacritics] ? @"1" : @"0";
-            else if ([key isEqualToString:@"username"] == NO && [key 
isEqualToString:@"password"] == NO)
+            if ([key isEqualToString:USERNAME_KEY] == NO) {
+                if ([key isEqualToString:REMOVEDIACRITICS_KEY])
+                    value = [self removeDiacritics] ? @"1" : @"0";
                 [query addObject:[NSString stringWithFormat:@"%@=%@", key, 
[value stringByAddingPercentEscapesForQueryTerm]]];
+            }
         }];
         if ([query count])
             [components setPercentEncodedQuery:[query 
componentsJoinedByString:@"&"]];

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

Reply via email to