cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [31/38] js commit: Add leading slash to cordova_plugins.json in plugin loader
Date Tue, 14 May 2013 21:13:10 GMT
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/3.0.0
Commit: 8d59461c6f796f2c88a0eae2467cc663897ccce9
Parents: 93152a0
Author: Bryan Higgins <bryan@bryanhiggins.net>
Authored: Mon May 6 18:44:00 2013 -0400
Committer: Bryan Higgins <bryan@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();


Mime
View raw message