Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 393e396

Browse files
Merge pull request #88 from topcoder-platform/PLAT_1128
Encode the tags param
2 parents b858536 + ea41a33 commit 393e396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ async function getLegacyTrackInformation (trackId, typeId, tags, m2mToken) {
342342
`typeId=${typeId}`
343343
]
344344
_.each((tags || []), (tag) => {
345-
query.push(`tags[]=${tag}`)
345+
query.push(`tags[]=${encodeURIComponent(tag)}`)
346346
})
347347
try {
348348
const res = await helper.getRequest(`${config.V5_CHALLENGE_MIGRATION_API_URL}/convert-to-v4?${query.join('&')}`, m2mToken)

0 commit comments

Comments
 (0)