# HG changeset patch # User HIROSE Yuuji # Date 1591010702 -32400 # Node ID 33df7d50532ec29d0d959c2b58f68ee5c1fb72eb # Parent 2c0c25fc9f68f97000dd6c1f72d27c3845ed2fdb Empty-repost workaround in EDIT mode added diff -r 2c0c25fc9f68 -r 33df7d50532e s4-funcs.sh --- a/s4-funcs.sh Mon Jun 01 19:31:36 2020 +0900 +++ b/s4-funcs.sh Mon Jun 01 20:25:02 2020 +0900 @@ -3741,7 +3741,7 @@ 書き込み直後のリロードなので上書きを回避します。 最新記事は末尾の「再読み込み」ボタンから見てください。 EOF - err "Repost aid=$aid Browser=[$HTTP_USER_AGENT]" + err "Repost aid=$aid Browser=[$HTTP_USER_AGENT] user=$user" return 9 # STOP Duplicated posting fi fi @@ -3800,6 +3800,10 @@ case `gettbl_coltype $tbl/$origcol` in image|document|binary) file=$tmpd/`getparfilename $v` + if [ ! -s "$file" ]; then # Maybe stupid REPOST + err "Empty REPOST by [$HTTP_USER_AGENT] user=$user" + continue + fi ## err type=file=$file [ -z "$file" ] && continue bn=`sqlquotestr "${file##*/}"`