From: paul Date: Thu, 22 Sep 2011 00:56:55 +0000 (+0000) Subject: whatever X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=81cb90f37d49d9d7d70fea7575371e5f04692e87;p=busy whatever svn path=/trunk/; revision=11 --- diff --git a/write/image_upload.cgi b/write/image_upload.cgi index 655b40f..bc66728 100755 --- a/write/image_upload.cgi +++ b/write/image_upload.cgi @@ -67,6 +67,8 @@ n=1 truncate -s $(($size - 2)) $filename else case "$field" in + picture) echo -E "$line" >>$filename + ;; title) title="$(sed 's/\t/ /g;s/\r|\n//g;s/\\/\\\\/g' <<<"$line")" ;; name) name="$(sed 's/\t/ /g;s/\r|\n//g;s/\\/\\\\/g' <<<"$line")" @@ -79,8 +81,6 @@ n=1 ;; desc) desc="${desc}$(sed 's/\t/ /g;s/\r//g;s/\\/\\\\/g' <<<"$line")\n" ;; - picture) echo -E "$line" >>$filename - ;; esac fi done