Skip to content

Commit

Permalink
fix(FEC-8414): referrer should not be base64 encoded (#20)
Browse files Browse the repository at this point in the history
Change referrer string to only be URI encoded and not base64 encoded
  • Loading branch information
OrenMe authored and Dan Ziv committed Jul 16, 2018
1 parent 02c5da5 commit 5d52ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kava.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class Kava extends BasePlugin {
this._model.getClientTag = () => 'html5:v' + this.config.playerVersion;
this._model.getKS = () => this.config.ks;
this._model.getUIConfId = () => this.config.uiConfId;
this._model.getReferrer = () => btoa(this.config.referrer);
this._model.getReferrer = () => this.config.referrer;
this._model.getCustomVar1 = () => this.config.customVar1;
this._model.getCustomVar2 = () => this.config.customVar2;
this._model.getCustomVar3 = () => this.config.customVar3;
Expand Down
2 changes: 1 addition & 1 deletion test/src/kava.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('KavaPlugin', function() {
params.sessionId.should.equal(config.session.id);
params.eventIndex.should.equal(1);
params.ks.should.equal(config.session.ks);
params.referrer.should.equal(btoa(config.plugins.kava.referrer));
params.referrer.should.equal(config.plugins.kava.referrer);
params.deliveryType.should.equal('url');
params.playbackType.should.equal('vod');
(!!params.sessionStartTime).should.be.false;
Expand Down

0 comments on commit 5d52ca9

Please sign in to comment.