From 953e7155f08809a546baccac1c876894ec1b7378 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 16 May 2017 14:41:40 +0200 Subject: [PATCH] Send only the hostname to the accounts server --- www/common/cryptpad-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 4472dde7b..00fb7bd09 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -797,7 +797,7 @@ define([ var $usage = $('', {'class': 'usage'}).css('width', width+'px'); if ((quota >= 0.8 || alwaysDisplayUpgrade) && data.plan !== "power") { - var origin = encodeURIComponent(window.location.origin); + var origin = encodeURIComponent(window.location.hostname); var $upgradeLink = $('', { href: "https://accounts.cryptpad.fr/#!on=" + origin, rel: "noreferrer noopener",