Mercurial > hgrepos > hgweb.cgi > s4
changeset 722:78cc4ba7bf42
Debug code and preparation of Path parameter added
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 31 May 2020 15:07:02 +0900 |
parents | fce9d5977822 |
children | b8f5bfb91ea2 1b294b80544e |
files | s4-funcs.sh |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Sun May 31 10:42:15 2020 +0900 +++ b/s4-funcs.sh Sun May 31 15:07:02 2020 +0900 @@ -1173,9 +1173,12 @@ query "delete from session where expire < '$now';" } gencookie() ( + path=${URL#*:/} + path=${URL%/*} + expire="`expire '' '%a, %d-%b-%Y %H:%M:%S GMT'`" for kv; do - expire="`expire '' '%a, %d-%b-%Y %H:%M:%S GMT'`" - echo "Set-Cookie: $kv; expires=$expire" + # echo "Set-Cookie: $kv; expires=$expire; Path=$path" + echo "Set-Cookie: $kv; expires=$expire;" done ) contenttype() { @@ -1410,6 +1413,7 @@ # cat > $tmpf # too much? head -c $CONTENT_LENGTH > $tmpf # safe? (echo CL=$CONTENT_LENGTH; ls -lF $tmpf) 1>&3 + cp tmp/stream /tmp # 2020-0531 s="`cat tmp/stream`" tmpfiles=$tmpfiles"${tmpfiles+ }$tmpf" ;;