4 ms·
> blns.txt consists of newline-delimited strings I expect some nasty strings to contain newlines (I wonder how many bash scripts are sensitive to filenames wit
by leni536 10y ago
> blns.txt consists of newline-delimited strings
I expect some nasty strings to contain newlines (I wonder how many bash scripts are sensitive to filenames with newline characters in them). It shouldn't be a problem with the json file though.
- mtnygard 10y agoThe file is newline-delimited. The strings themselves are base64 encoded, so they could contain newlines.
- leni536 10y agoIt seems that blns.txt is the source content, then it's converted to blns.json, blns.base64.txt and blns.base64.json with the two scripts in the scripts folder (These resulting files shouldn't be in the repo in my opinion). One cannot possibly add strings with newlines in them, unless with some newline escaping that are handled in the scripts. It's a bad idea IMO and the source content should be the json file and blns.txt should be dropped.