s4

changeset 740:b5df3b16c9d8

Too much html-escaping for group name fixed
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 05 Jun 2020 14:49:59 +0900
parents 441768a11b84
children f2c7117f452e 5dff7af7fdce
files s4-funcs.sh
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Thu Jun 04 06:56:20 2020 +0900
     1.2 +++ b/s4-funcs.sh	Fri Jun 05 14:49:59 2020 +0900
     1.3 @@ -1940,8 +1940,7 @@
     1.4        help="★★ $g さんの書き込みから検索します$nl$help"
     1.5        ;;
     1.6      grp=*)
     1.7 -      a=`echo "${1#grp=}"|htmlescape`
     1.8 -      g=`gecos ${1#grp=}`
     1.9 +      a=`echo "${1#grp=}"`	# group name cannot have quoting marks
    1.10        auth="<input type=\"hidden\" name=\"owner\" value=\"$a\">"
    1.11        placeholder="このグループからの検索"
    1.12        ;;
    1.13 @@ -2523,7 +2522,7 @@
    1.14        ismember="" # bodyclass="group"
    1.15      fi
    1.16      bodyclass="$bodyclass grouphome"
    1.17 -    echo "<div class=\"search\">`search_form grp=\"$htmlgrp\"`</div>"> $sf
    1.18 +    echo "<div class=\"search\">`search_form grp=\"$grp\"`</div>"> $sf
    1.19      echo "グループ $htmlgrp" > $tf
    1.20  
    1.21      showgroupsub $formdir/grp.def "$grid" | \