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 wrap: on
line diff
--- a/s4-funcs.sh	Thu Jun 04 06:56:20 2020 +0900
+++ b/s4-funcs.sh	Fri Jun 05 14:49:59 2020 +0900
@@ -1940,8 +1940,7 @@
       help="★★ $g さんの書き込みから検索します$nl$help"
       ;;
     grp=*)
-      a=`echo "${1#grp=}"|htmlescape`
-      g=`gecos ${1#grp=}`
+      a=`echo "${1#grp=}"`	# group name cannot have quoting marks
       auth="<input type=\"hidden\" name=\"owner\" value=\"$a\">"
       placeholder="このグループからの検索"
       ;;
@@ -2523,7 +2522,7 @@
       ismember="" # bodyclass="group"
     fi
     bodyclass="$bodyclass grouphome"
-    echo "<div class=\"search\">`search_form grp=\"$htmlgrp\"`</div>"> $sf
+    echo "<div class=\"search\">`search_form grp=\"$grp\"`</div>"> $sf
     echo "グループ $htmlgrp" > $tf
 
     showgroupsub $formdir/grp.def "$grid" | \

yatex.org