Skip to content

Commit

Permalink
feat: filter invalid challenge ids during progression transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
grappigegovert committed Feb 1, 2025
1 parent a0b18bd commit ba943e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/webFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ webFeaturesRouter.post(
false,
{
profileid: req.query.user,
challengeids: controller.challengeService.getChallengeIds(
req.query.gv,
),
challengeids: controller.challengeService
.getChallengeIds(req.query.gv)
.filter((id) => uuidRegex.test(id)), // filter out potential bogus challenge ids added by plugins
},
)

Expand Down

0 comments on commit ba943e0

Please sign in to comment.