From 3d71ba35c046b3306bcb97e697e4b2b18ec06b0f Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Wed, 3 Aug 2022 14:53:19 +0600 Subject: [PATCH 1/4] add test PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de100d06e065f..f2bd2946730c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Binary-Static +# Binary-Static Test PR This repository contains the static HTML, Javascript, CSS, and images content of the [Binary.com](http://www.binary.com) website. From 325c05b31597ea687c89104d11a5e71a0361c7df Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Wed, 3 Aug 2022 14:58:43 +0600 Subject: [PATCH 2/4] remove test PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f2bd2946730c7..de100d06e065f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Binary-Static Test PR +# Binary-Static This repository contains the static HTML, Javascript, CSS, and images content of the [Binary.com](http://www.binary.com) website. From 41ac6d68d16ac62dfbedaaad9534a104b00ff7c0 Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Thu, 18 May 2023 10:12:45 +0600 Subject: [PATCH 3/4] update cookie security check --- src/javascript/app/common/redirect_banner.js | 4 ++-- src/javascript/app/common/traffic_source.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/javascript/app/common/redirect_banner.js b/src/javascript/app/common/redirect_banner.js index d324320c952d6..71bf7d324e814 100644 --- a/src/javascript/app/common/redirect_banner.js +++ b/src/javascript/app/common/redirect_banner.js @@ -25,10 +25,10 @@ const RedirectBanner = (() => { }; const handleRedirect = () => { - window.location.href = '/move-to-deriv/'; + window.location.href = 'https://eu.deriv.com/'; }; const handleRowRedirect = () => { - window.location.href = '/binary-to-deriv/'; + window.location.href = 'https://deriv.com/'; }; const loginOnLoad = () => { diff --git a/src/javascript/app/common/traffic_source.js b/src/javascript/app/common/traffic_source.js index 369209df5e6e0..0e03485fafa83 100644 --- a/src/javascript/app/common/traffic_source.js +++ b/src/javascript/app/common/traffic_source.js @@ -94,7 +94,8 @@ const TrafficSource = (() => { if (shouldOverwrite(new_values, current_values)) { clearData(); Object.keys(new_values).forEach((key) => { - cookie.set(key, new_values[key], { sameSite: 'none', secure: true }); + const utm_data_cookie = new_values.replaceAll(';', ''); + cookie.set(key, utm_data_cookie[key], { sameSite: 'none', secure: true }); }); } From 176e25bae98556db064dfeffa9f41d78097d8005 Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Thu, 18 May 2023 14:26:12 +0600 Subject: [PATCH 4/4] update cookie security check --- src/javascript/app/common/traffic_source.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/javascript/app/common/traffic_source.js b/src/javascript/app/common/traffic_source.js index 0e03485fafa83..35dab57425c9e 100644 --- a/src/javascript/app/common/traffic_source.js +++ b/src/javascript/app/common/traffic_source.js @@ -94,8 +94,7 @@ const TrafficSource = (() => { if (shouldOverwrite(new_values, current_values)) { clearData(); Object.keys(new_values).forEach((key) => { - const utm_data_cookie = new_values.replaceAll(';', ''); - cookie.set(key, utm_data_cookie[key], { sameSite: 'none', secure: true }); + // cookie.set(key, new_values[key], { sameSite: 'none', secure: true }); }); }