s4

changeset 689:13fb1392d2f2

Function setviastring() only concerned with table 'par'.
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 18 May 2020 19:15:11 +0900
parents 1aa16edc28e5
children 87ce0eef5872
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Mon May 18 19:07:52 2020 +0900
     1.2 +++ b/s4-funcs.sh	Mon May 18 19:15:11 2020 +0900
     1.3 @@ -1225,14 +1225,13 @@
     1.4    fi
     1.5  }
     1.6  setviastring() {
     1.7 -  table=$1
     1.8 +  table=par
     1.9    oifs="$IFS"
    1.10    IFS="&" 
    1.11 -  for us in $2; do
    1.12 +  for us in $1; do
    1.13      k=${us%%=*}
    1.14      v="`echo ${us#*=}|tr '%+' '= '|nkf -Ww -mQ|sed -e 's/\"/\"\"/g'`"
    1.15 -    query "replace into $table values('$session', '$k', 'string', \"$v\");"
    1.16 -    #echo $k=$v
    1.17 +    setpar "$k" "string" "$v"
    1.18    done
    1.19    IFS="$oifs"
    1.20  }
    1.21 @@ -1406,7 +1405,7 @@
    1.22        done
    1.23        ;;
    1.24      *)
    1.25 -      setviastring par "$s"
    1.26 +      setviastring "$s"
    1.27        ;;
    1.28    esac
    1.29  }