PennyDreadfulMTG / Penny-Dreadful-Tools

A suite of tools for the Penny Dreadful MTGO community
https://pennydreadfulmagic.com
MIT License
41 stars 28 forks source link

Validation of API input params #12276

Open bakert opened 6 months ago

bakert commented 6 months ago

Some stuff that needs to happen here:

bakert commented 6 months ago

If you send us a sql injection attempt in (say) personId or seasonId with an achievementKey when calling /api/decks we will 500 instead of 400 fix that in a general way

bakert commented 6 months ago

this pattern - int(args.get('person_id', '')) - which wILL raise, is so ugly in clauses