SignalK / signalk-server

An implementation of a Signal K central server for boats.
http://signalk.org
Apache License 2.0
298 stars 150 forks source link

fix: plain res.send calls #1759

Closed tkurki closed 6 days ago

tkurki commented 2 weeks ago

Replace plain res.send calls that set mime type to text/html with res.json or set mime type explicitly to text/plain so that there is less chance of injecting html content.