issues
search
cooperlees
/
monitord
Script to parse systemd units and components health + offer telemetry
GNU General Public License v2.0
6
stars
8
forks
source link
Escape all JSON strings we don't control all input
#60
Closed
cooperlees
closed
10 months ago
cooperlees
commented
10 months ago
Let's use
serde_json::json
to ensure we escape strings correctly
Change unit stats variable service_name to unit name to be clearer ...
Test:
Add a key that needs to be escaped
Fix the prefixed test to no need update every time we add a new key too
Fixes #59
serde_json::json
to ensure we escape strings correctlyTest:
Fixes #59