commit 2542a7773711da8d6cea85a007bcc5a2e2b2ffb0
parent a8aa123d0d049032bce62b62c5a2ffcd0639910d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Feb 2022 13:54:30 +0100
sfeed_opml_export: improve comment
In theory feed names can contain newlines, TABS, control-characters or start
with echo options like -n. This is not recommended and not checked.
URLs cannot have these characters: they should be percent-encoded.
echo is typically a shell built-in and fast, so this trade-off is done.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sfeed_opml_export b/sfeed_opml_export
@@ -27,7 +27,7 @@ loadconfig() {
# override feed function to output OPML XML.
# feed(name, feedurl, [basesiteurl], [encoding])
feed() {
- # NOTE: TABs in field values are unsupported, be sane.
+ # TABs, newlines and echo options in field values are not checked.
echo "$1 $2"
}