s4
changeset 148:afc3bf5c9dbb
profimg should be saved in $tmpd
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 30 Nov 2015 09:07:49 +0859 |
parents | b3d8a389e7a8 |
children | 0e28561bf73a |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Mon Nov 30 09:03:54 2015 +0859 1.2 +++ b/s4-funcs.sh Mon Nov 30 09:07:49 2015 +0859 1.3 @@ -1363,7 +1363,7 @@ 1.4 1.5 sqcond="WHERE name='$uname' AND key='profimg' AND type LIKE 'file:image%'" 1.6 img=`query "SELECT type FROM user_m $sqcond LIMIT 1;"` 1.7 - imf=tmp/profimg; touch $imf 1.8 + imf=$tmpd/profimg.$$; touch $imf 1.9 if [ -n "$img" ]; then 1.10 { printf '%s' "<img width=\"400\" src=\"data:${img#file:}," 1.11 query "SELECT hex(bin) FROM user_m $sqcond LIMIT 1;" \