You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/05/15 21:52:07 UTC

ios commit: [CB-3394] Cordova iOS crashes when multiple access elements in config.xml

Updated Branches:
  refs/heads/master 4b672e022 -> 8fce6749e


[CB-3394] Cordova iOS crashes when multiple access elements in config.xml


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/8fce6749
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/8fce6749
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/8fce6749

Branch: refs/heads/master
Commit: 8fce6749ebce9e1b8d17bfd45add2988dcb4d90b
Parents: 4b672e0
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed May 15 12:52:01 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed May 15 12:52:01 2013 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVWhitelist.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/8fce6749/CordovaLib/Classes/CDVWhitelist.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVWhitelist.m b/CordovaLib/Classes/CDVWhitelist.m
index 686a0ed..13a2572 100644
--- a/CordovaLib/Classes/CDVWhitelist.m
+++ b/CordovaLib/Classes/CDVWhitelist.m
@@ -124,7 +124,7 @@ NSString* const kCDVDefaultSchemeName = @"cdv-default-scheme";
 
         // check for single wildcard '*', if found set allowAll to YES
         if ([host isEqualToString:@"*"]) {
-            [_expandedWhitelists setObject:[NSArray arrayWithObject:host] forKey:scheme];
+            [_expandedWhitelists setObject:[NSMutableArray arrayWithObject:host] forKey:scheme];
             continue;
         }