Escape | in news titles. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit ac6e0c6c47a6b492d46941536d12983c4b3f0a53 | |
parent 135c72879e5d1b4fea31f61c6045759b3d49e1dd | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Fri, 6 Aug 2021 14:14:05 +0200 | |
Escape | in news titles. | |
Thanks Bob and Duck for the hint. | |
Diffstat: | |
M phlog-index | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/phlog-index b/phlog-index | |
@@ -42,7 +42,7 @@ do | |
IFS=' ' read -r fname unixt user fpath <<< $f | |
tstamp="$(sed -n 1p "$fpath" | cut -d' ' -f 2)" | |
[ -z "$tstamp" ] && continue | |
- title="$(sed -n 3p "$fpath" | sed 's,\t, ,g')" | |
+ title="$(sed -n 3p "$fpath" | sed 's,\t, ,g; s,|,\\|,g';)" | |
[ -z "$title" ] && continue | |
gphpth="$(printf "$gopherbase" "$user" "$fname")" |