Closed frereit closed 9 months ago
Fixing files that were ruined by this bug:
find the number of files that contain three or more backslashes: grep -le '\\\\\\' * | wc -l
replace three backslashes by two backslashes: find /etc/ical-relay/calstore/ -type f -exec sed -i 's/\\\\\\/\\\\/g' {} +
replace any leftover lines that only contain two backslashes: find /etc/ical-relay/calstore/ -type f -exec sed -i '/ \\\\/d' {} +
This ensures values are correctly escaped.
When setting properties using SetDescription, it is escaped. This ensures a well-formed iCal file. Using GetDescription returns the unescaped string, resulting in a well-rendered frontend.
This is blocked by JM-Lemmi/golang-ical#7. Merging before that PR is merged, and then incorporated back into this repository via the submodule, will break things.