Skip to content

Commit

Permalink
Merge pull request #193 from TargetLocked/fix-multisell-uri
Browse files Browse the repository at this point in the history
fix: use encodeURIComponent when building multisell URL
  • Loading branch information
Nuklon authored May 4, 2024
2 parents 2874656 + 2d5a768 commit 941caa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@

var itemsString = '';
for (var itemName in itemsWithQty) {
itemsString += '&items[]=' + encodeURI(itemName) + '&qty[]=' + itemsWithQty[itemName];
itemsString += '&items[]=' + encodeURIComponent(itemName) + '&qty[]=' + itemsWithQty[itemName];
}

var baseUrl = 'https://steamcommunity.com/market/multisell';
Expand Down

0 comments on commit 941caa1

Please sign in to comment.