From 8a94281be0cd5d6519d304c37d06ff06a3c2d5c2 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Sun, 17 Feb 2013 01:29:44 +0000 Subject: [PATCH] Handle '&' appearing in HTML output from tune titles. It must be escaped or sed will substitute the pattern being searched for at that point in the result. --- makeWeb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makeWeb.sh b/makeWeb.sh index 3513895..a108da7 100755 --- a/makeWeb.sh +++ b/makeWeb.sh @@ -59,10 +59,10 @@ find $bookedir -name "*.abc" | sort | # Generate the tune web page. tunepage=${name}.html - sed -e "s/@TITLE@/${title}/" \ + sed -e "s/@TITLE@/${title//&/\&}/" \ -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage - sed -e "s/@TITLE@/${title}/" \ + sed -e "s/@TITLE@/${title//&/\&}/" \ -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output done