summaryrefslogtreecommitdiffstats
path: root/firefox-addon/lib
diff options
context:
space:
mode:
Diffstat (limited to 'firefox-addon/lib')
-rw-r--r--firefox-addon/lib/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/firefox-addon/lib/main.js b/firefox-addon/lib/main.js
index c5446f2..cc8845e 100644
--- a/firefox-addon/lib/main.js
+++ b/firefox-addon/lib/main.js
@@ -7,9 +7,10 @@ var XMLHttpRequest = require("sdk/net/xhr").XMLHttpRequest;
function log(url, title){
var xhr = new XMLHttpRequest();
xhr.open("POST", prefs.callbackUrl);
- var data = "url=" + url;
+ var data = "url=" + encodeURIComponent(url);
data += "&time=" + Date.now();
- data += "&title=" + title;
+ data += "&title=" + encodeURIComponent(title);
+ data += "&key=" + encodeURIComponent(prefs.key);
xhr.send(data);
}