From fa654a7646770357d9f5510da030e233898a53c3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 2 Aug 2016 17:08:46 +0200 Subject: [PATCH] slightly better regex --- 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 9fa8a9131..b3b51f000 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -38,7 +38,7 @@ define([ var hostname = window.location.hostname; // don't do anything funny unless you're on a cryptpad subdomain - if (!/cryptpad.fr/i.test(hostname)) { return; } + if (!/cryptpad.fr$/i.test(hostname)) { return; } if (hash.length >= 56) { // you're on the right domain