You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2012/09/06 21:50:56 UTC

ios commit: [ios] Fix data uri from being blocked

Updated Branches:
  refs/heads/master d4db38097 -> ed7e5e44c


[ios] Fix data uri from being blocked

Fixes issue https://issues.apache.org/jira/browse/CB-1380


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

Branch: refs/heads/master
Commit: ed7e5e44cae4e11a4f9c03cadda92b2b75d299c3
Parents: d4db380
Author: Michal Mocny <mm...@gmail.com>
Authored: Thu Sep 6 10:29:40 2012 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Sep 6 15:50:12 2012 -0400

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.m |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/ed7e5e44/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index ed75c2e..3695b18 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -548,6 +548,13 @@
         return NO;
     }
     /*
+     * all data: scheme urls are handled
+     */
+    else if ([[url scheme] isEqualToString:@"data"])
+    {
+        return YES;
+    }
+    /*
      * We don't have a Cordova or web/local request, load it in the main Safari browser.
      * pass this to the application to handle.  Could be a mailto:dude@duderanch.com or a tel:55555555 or sms:55555555 facetime:55555555
      */