fixed escaping rss

This commit is contained in:
James Tomasino 2023-01-22 16:00:32 +00:00
parent 52a2f0bcac
commit eddb1d2f65
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if [ "$run_user" -eq 0 ]; then
printf " <guid>gopher://cosmic.voyage/0%s</guid>\\n" "$(printf "%s" "$log" | sed 's|\ |%20|g')"
printf " <pubDate>%s GMT</pubDate>\\n" "$(date -d "$(stat -c %y "/var/gopher${log}")" +'%a, %d %b %Y %H:%M:%S')"
printf " <description><![CDATA[<pre>\\n"
cat "/var/gopher${log}"
sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g' "/var/gopher${log}"
printf "</pre>]]></description>\\n"
printf "</item>\\n"
} >> "${gopher_rss}"