From 97601c1b286bfd2941765e8f300ec071a6aeecab Mon Sep 17 00:00:00 2001 From: Daniel Borkan Date: Mon, 28 Sep 2015 18:44:57 -0400 Subject: [PATCH] Fix Firefox URL matching --- src/firefox/lib/url-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/firefox/lib/url-handler.js b/src/firefox/lib/url-handler.js index 0601d14d31..dce05b8993 100644 --- a/src/firefox/lib/url-handler.js +++ b/src/firefox/lib/url-handler.js @@ -10,9 +10,9 @@ exports.setup = function(panel, button) { subject.QueryInterface(Ci.nsIHttpChannel); var url = subject.URI.spec - if (/https:\/\/www.uproxy.org\/(request|offer)\/(.*)/.test(url)) { + if (/^https:\/\/www.uproxy.org\/(request|offer)\/(.*)/.test(url)) { panel.port.emit('copyPasteUrlData', url); - } else if (/https:\/\/www.uproxy.org\/invite\/(.*)/.test(url)) { + } else if (/^https:\/\/www.uproxy.org\/invite\/(.*)/.test(url)) { panel.port.emit('inviteUrlData', url); } else { return;