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 73a2d5649451fc8296405944eaeba4a15afb6325..7ff8d4348a6f4946fa4d4f07c23937ec517621fd 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 f6d6e4dfe726caed25abe0fe91a6bfdd6f9def4b..559be67e74b21c4090e720c162d1fec3b7e0c093 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