TuomoKu / SPX-GC

SPX is a graphics control client for live video productions and live streams using CasparCG, OBS, vMix, or similar software.
https://spx.graphics
MIT License
300 stars 60 forks source link

GetJsonData is unsafe #94

Open Dan-Shields opened 7 months ago

Dan-Shields commented 7 months ago

When using this function there's no easy way to tell if the return value is a valid JSON or an error, so API routes like /saveauthpolicy for example could destroy a profile if the GetJSONData function failed

From what I can tell there's several of these routes that could replace rundown & profile .json files with an error string