summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-02-19 13:54:30 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-02-19 13:54:30 +0100
commit2542a7773711da8d6cea85a007bcc5a2e2b2ffb0 (patch)
tree30cc5a4108061e9730be2a5503956ab9ab3cf6aa
parenta8aa123d0d049032bce62b62c5a2ffcd0639910d (diff)
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.
-rwxr-xr-xsfeed_opml_export2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_opml_export b/sfeed_opml_export
index 9c7afeb..eb22520 100755
--- 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"
}