cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eymor...@apache.org
Subject [03/28] ios commit: CB-10828 TypeError: Cannot read property 'indexOf' of null when allow-navigation using scheme:*
Date Mon, 04 Apr 2016 16:26:59 GMT
CB-10828 TypeError: Cannot read property 'indexOf' of null when allow-navigation using scheme:*


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

Branch: refs/heads/4.1.x
Commit: af96840cbc34e7ad950ea1a8ff96d169af040f61
Parents: af5a5d8
Author: Carlos Santana <csantana23@gmail.com>
Authored: Wed Mar 9 19:12:21 2016 -0500
Committer: Carlos Santana <csantana23@gmail.com>
Committed: Wed Mar 9 19:12:21 2016 -0500

----------------------------------------------------------------------
 bin/templates/scripts/cordova/lib/prepare.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/af96840c/bin/templates/scripts/cordova/lib/prepare.js
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/prepare.js b/bin/templates/scripts/cordova/lib/prepare.js
index 1e90f8e..4cf8ac8 100644
--- a/bin/templates/scripts/cordova/lib/prepare.js
+++ b/bin/templates/scripts/cordova/lib/prepare.js
@@ -431,6 +431,10 @@ function processAccessAndAllowNavigationEntries(config) {
 function parseWhitelistUrlForATS(url, minimum_tls_version, requires_forward_secrecy) {
     var href = URL.parse(url);
     var retObj = {};
+    if(!href.pathname){
+      return null;
+    }
+    
     retObj.Hostname = href.hostname;
 
     if (url === '*') {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message