Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/s4-funcs.sh Mon Nov 30 09:03:54 2015 +0859 +++ b/s4-funcs.sh Mon Nov 30 09:07:49 2015 +0859 @@ -1363,7 +1363,7 @@ sqcond="WHERE name='$uname' AND key='profimg' AND type LIKE 'file:image%'" img=`query "SELECT type FROM user_m $sqcond LIMIT 1;"` - imf=tmp/profimg; touch $imf + imf=$tmpd/profimg.$$; touch $imf if [ -n "$img" ]; then { printf '%s' "<img width=\"400\" src=\"data:${img#file:}," query "SELECT hex(bin) FROM user_m $sqcond LIMIT 1;" \