summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fb.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/fb.in b/fb.in
index c781c74..b91b384 100644
--- a/fb.in
+++ b/fb.in
@@ -59,7 +59,8 @@ do_upload() {
fi
fi
CURLOPTS="-# -n -L -A $USERAGENT $EXTRA"
- if [ `stat -c %s -- "$file"` -eq "0" ]; then
+ if [ `stat -c %s -- "$file"` -eq "0" ] || echo "$file" | grep -F -q ","; then
+ basefilename=`echo "$basefilename" | tr -d ,`
if ! curl $CURLOPTS -F "file=@-;filename=$basefilename" "$PASTEBIN/file/do_upload" < "$file" > $TMPFILE; then
EXITCODE=1
return 1