s4
changeset 421:d3bf2e95c0cc
Multiple reply handling fixed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 02 Mar 2017 16:24:10 +0859 |
parents | 0f6b4939ee8f |
children | a868a34ca3bc |
files | s4-blog.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-blog.sh Wed Mar 01 12:56:18 2017 +0859 1.2 +++ b/s4-blog.sh Thu Mar 02 16:24:10 2017 +0859 1.3 @@ -63,7 +63,7 @@ 1.4 if [ -z "$4" -a -n "$replymark" ]; then 1.5 # If the action is new subscription($4="") and has ">#123" marks... 1.6 ids=`echo "$replymark"|sed 's/[^#0-9]*#\([0-9]*\)[^#0-9]*/\1 /g'` 1.7 - ids=`echo ${ids%%[!0-9, ]*}|tr ' ' ','` 1.8 + ids=`echo $ids|tr -dc '[0-9 ]'|tr ' ' ','` 1.9 # -> 123,345,347 1.10 unames=`query "SELECT distinct author FROM article \ 1.11 WHERE rowid in ($ids)\