X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=cgilite.sh;h=8859b44c380d13ad61b779775239aeeaabed606c;hp=b936e47dbe07457833b724fbeadbac12a5bceaf7;hb=d490f720aed2ad75f580ac526f83c581d659633b;hpb=a55a4d8fb1dae783a93492c7d9b55d042791864f diff --git a/cgilite.sh b/cgilite.sh index b936e47..8859b44 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -170,7 +170,7 @@ URL(){ printf %s "$*" \ | hexdump -v -e '/1 ",%02X"' \ - | tr , % + | tr , % |sed 's;%2F;/;g;' } PATH(){ @@ -186,6 +186,7 @@ PATH(){ SET_COOKIE(){ + local expire cookie case "$1" in ''|0|session) expire='';; [+-][0-9]*) expire="$(date -R -d @$(($(date +%s) + $1)))";;