Skip to content

Commit

Permalink
Prevent 'about:' protocol in _publisherTagUrl (#1170)
Browse files Browse the repository at this point in the history
* handle pubmatic targeting key value pairs if in DFP GPT format

* hardcoded pubmatic request to https as protocol-less url prevents chrome req from injected iframe

* add newline for consistency

* specifically check for http prot, fall back to https in crit adapter

* added spaces to pass eslint #1170

* removed blank line refs PR #1170
  • Loading branch information
tomraa authored and Nate Cozi committed Jun 7, 2017
1 parent 3d174d1 commit 66089e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters/criteo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ var bidmanager = require('../bidmanager.js');
var adloader = require('../adloader');

var CriteoAdapter = function CriteoAdapter() {
var _publisherTagUrl = window.location.protocol + '//static.criteo.net/js/ld/publishertag.js';
var sProt = (window.location.protocol === 'http:') ? 'http:' : 'https:';
var _publisherTagUrl = sProt + '//static.criteo.net/js/ld/publishertag.js';
var _bidderCode = 'criteo';
var _profileId = 125;

Expand Down

0 comments on commit 66089e3

Please sign in to comment.