From 576cff5e1afc893dbc4004a958b66b326b847693 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 18 Jan 2017 23:49:15 +0100
Subject: [PATCH] Remove illegal URL character and fix replies link in feed.

---
 processor/metadata/default.feed_snippet.do | 2 +-
 test/test_files/foo.links                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/processor/metadata/default.feed_snippet.do b/processor/metadata/default.feed_snippet.do
index 73a2d56..7ff8d43 100644
--- a/processor/metadata/default.feed_snippet.do
+++ b/processor/metadata/default.feed_snippet.do
@@ -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. 
diff --git a/test/test_files/foo.links b/test/test_files/foo.links
index f6d6e4d..559be67 100644
--- a/test/test_files/foo.links
+++ b/test/test_files/foo.links
@@ -1,2 +1,2 @@
 http://example.org/
-http://example.com/some"what'danger<>us%URL
+http://example.com/some$what'danger<>us%URL
-- 
2.30.2