Mercurial > hgrepos > hgweb.cgi > s4
changeset 656:ad6b57bd6a20
Remove newlines from patterns
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 11 May 2020 18:09:41 +0900 |
parents | a049d3cb0389 |
children | 5b5c64023cf5 |
files | s4-funcs.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Mon May 11 13:45:48 2020 +0900 +++ b/s4-funcs.sh Mon May 11 18:09:41 2020 +0900 @@ -2204,7 +2204,8 @@ convert -geometry $thumbxy $imgdir/$deficon $dir/$deficon fi if [ -n "$2" ]; then - cond1="(nick like '%$2%' or b.name like '%$2%')" + ptn=`echo $2 | tr -d '\n'` + cond1="(nick like '%${ptn}%' or b.name like '%${ptn}%')" kwd=$2 fi tag=`getpar tag` tag2=`getpar tag2`