last commit message was wrong, improved prescription overview in therapy
authorpaul <paul@plutz.net>
Fri, 15 Apr 2016 11:10:21 +0000 (11:10 +0000)
committerpaul <paul@plutz.net>
Fri, 15 Apr 2016 11:10:21 +0000 (11:10 +0000)
svn path=/trunk/; revision=102

pages/therapy.sh

index de8ca8b..8885515 100755 (executable)
@@ -46,11 +46,11 @@ client_name="${n:-${card_FN:-${card_NICK}}}"
 mpx=()
 cat "$mpxfile" |while read -r line; do
   val="${line#*:}"
 mpx=()
 cat "$mpxfile" |while read -r line; do
   val="${line#*:}"
-  mpx[${line%%:*}]="${val//\\n/$BR}"
+  mpx[${line%%:*}]="$(htmlsafe "${val//\\n/$BR}")"
 done
 
 tpy=()
 cat "$tpyfile" |while read -r line; do
   val="${line#*:}"
 done
 
 tpy=()
 cat "$tpyfile" |while read -r line; do
   val="${line#*:}"
-  tpy[${line%%:*}]="${val//\\n/$BR}"
+  tpy[${line%%:*}]="$(htmlsafe "${val//\\n/$BR}")"
 done
 done