Skip to content

Commit

Permalink
fix(amazon2): Incomplete URL substring sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
gierschv committed Nov 2, 2022
1 parent 0d425e4 commit 80e2d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amazon2.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports.validatePurchase = function (dSecret, receipt, cb) {
};

function _isSandbox(path) {
return !path.startsWith(VALIDATION_HOST);
return !path.startsWith(`${VALIDATION_HOST}/`);
}

module.exports.getPurchaseData = function (purchase, options) {
Expand Down

0 comments on commit 80e2d2e

Please sign in to comment.