Another comment:
I was testing the page and (unintentionally) I entered a line containing spaces and tabs. I noticed FTL didn't remove these characters.
Since I was just testing the interface, I didn't bother to look at the logs to see if dnsmasq accepted the values or if the values caused any trouble. I just noticed the JSON was returned like this:
(...)
"hosts":{
"description":"Per host...",
"allowed":"Array of static leases ...",
"type":"string array",
"value":[
"A4:EE:57:30:0E:0F,192.168.0.2 \t,Printer \t",
(...)
],
Do we need to clean up the entries to avoid dnsmasq issues?