You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2013/05/14 20:33:13 UTC

[31/33] js commit: Add leading slash to cordova_plugins.json in plugin loader

Add leading slash to cordova_plugins.json in plugin loader

This fixes script injection on pages which are not at the application root.


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

Branch: refs/heads/master
Commit: 8d59461c6f796f2c88a0eae2467cc663897ccce9
Parents: 93152a0
Author: Bryan Higgins <br...@bryanhiggins.net>
Authored: Mon May 6 18:44:00 2013 -0400
Committer: Bryan Higgins <br...@bryanhiggins.net>
Committed: Mon May 6 18:44:00 2013 -0400

----------------------------------------------------------------------
 lib/scripts/plugin_loader.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/8d59461c/lib/scripts/plugin_loader.js
----------------------------------------------------------------------
diff --git a/lib/scripts/plugin_loader.js b/lib/scripts/plugin_loader.js
index 00f889c..1100245 100644
--- a/lib/scripts/plugin_loader.js
+++ b/lib/scripts/plugin_loader.js
@@ -114,7 +114,7 @@
         finishPluginLoading();
     };
     try { // we commented we were going to try, so let us actually try and catch
-        xhr.open('GET', 'cordova_plugins.json', true); // Async
+        xhr.open('GET', '/cordova_plugins.json', true); // Async
         xhr.send();
     } catch(err){
         finishPluginLoading();