home · contact · privacy
Remove illegal URL character and fix replies link in feed.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 18 Jan 2017 22:49:15 +0000 (23:49 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 18 Jan 2017 22:49:15 +0000 (23:49 +0100)
processor/metadata/default.feed_snippet.do
test/test_files/foo.links

index 73a2d56..7ff8d43 100644 (file)
@@ -3,7 +3,7 @@
 # Handle URL from .links file.
 prep_url() {
   url=$(escape_html "$1")
-  printf "\n<link href=\"%s\" rel=\"replies\">%s</link>" "$url" "$url"
+  printf "\n<link href=\"%s\" rel=\"replies\" />" "$url"
 }
 
 # Pull in dependencies. 
index f6d6e4d..559be67 100644 (file)
@@ -1,2 +1,2 @@
 http://example.org/
-http://example.com/some"what'danger<>us%URL
+http://example.com/some$what'danger<>us%URL