X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=therapies%2Findex.cgi;h=6284c0033f504e53422e5c09cedade5fb4598811;hb=1e1cb695a2a413f310c4538c0d3b951f4d4fe72f;hp=f142d2180de1a20a6844577bb120e4557d957ada;hpb=6a48f4094cf2b0757c9fb5913739dc43e3f589b9;p=lobster diff --git a/therapies/index.cgi b/therapies/index.cgi index f142d21..6284c00 100755 --- a/therapies/index.cgi +++ b/therapies/index.cgi @@ -46,12 +46,6 @@ esac . $_EXEC/pdiread.sh . $_EXEC/therapies/l10n.sh -# unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; } -# upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' - -BR=' -' - id="${_PATH#/therapies/}" id="${id%/*}.${id#*/}" @@ -69,7 +63,7 @@ tpy="$(sed '1s;^;\n;; s/:/;:/' "$tpyfile")" VCF(){ pdi_value "$vcf" "$@"; } MPX(){ pdi_value "$mpx" "$@"; } -TPY(){ pdi_value "$tpy" "$@"; } +TPY(){ pdi_value "$tpy" "$@" >/dev/null && pdi_value "$tpy" "$@" |pdi_unescape; } . $_EXEC/therapies/page.sh \ | yield_page therapy /therapies/therapy.css