Skip to content

Commit

Permalink
ImproveDigital Bid Adapter: minor bug fixes (#9614)
Browse files Browse the repository at this point in the history
* Improve Digital adapter: publisher endpoint, addtl consent, syncs (#14)

- add bidders to sync url when extend mode enabled
- set ConsentedProvidersSettings when extend mode enabled
- dynamically generated AD_SERVER_URL when publisherId available

* Code refactored

* Minor changes

* Fix an issue where uppercase </SCRIPT> tags broke the JS on page, as they were not properly escaped

* fixed tests

---------

Co-authored-by: Faisal Islam <[email protected]>
Co-authored-by: Faisal Islam <[email protected]>
Co-authored-by: Jozef Bartek <[email protected]>
Co-authored-by: Jozef Bartek <[email protected]>
  • Loading branch information
5 people authored Mar 3, 2023
1 parent 8112adf commit 3dade31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/improvedigitalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const ID_RAZR = {
}
};

const cfgStr = JSON.stringify(cfg).replace(/<\/script>/g, '\\x3C/script>');
const cfgStr = JSON.stringify(cfg).replace(/<\/script>/ig, '\\x3C/script>');
const s = `<script>window.__razr_config = ${cfgStr};</script>`;
bid.ad = bid.ad.replace(/<body[^>]*>/, match => match + s);

Expand Down

0 comments on commit 3dade31

Please sign in to comment.