Procházet zdrojové kódy

Replace deprecated percent encoding string transformation method

Ryan Olson před 10 roky
rodič
revize
44e428655a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Classes/Utility/FLEXUtility.m

+ 2 - 2
Classes/Utility/FLEXUtility.m

@@ -246,8 +246,8 @@
         // [a, 1]
         NSArray *components = [keyValueString componentsSeparatedByString:@"="];
         if ([components count] == 2) {
-            NSString *key = [[components firstObject] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
-            id value = [[components lastObject] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
+            NSString *key = [[components firstObject] stringByRemovingPercentEncoding];
+            id value = [[components lastObject] stringByRemovingPercentEncoding];
 
             // Handle multiple entries under the same key as an array
             id existingEntry = [queryDictionary objectForKey:key];