X-Git-Url: http://pileus.org/git/?p=vpaste;a=blobdiff_plain;f=index.cgi;h=09e5c985d394b6307e4dc22c5c8350195e3aa603;hp=bbabd30b4e9f587c7d4bd5f100572cc74af36c01;hb=HEAD;hpb=f64f51110258ddecdea447093ac5cbe489146a04 diff --git a/index.cgi b/index.cgi index bbabd30..09e5c98 100755 --- a/index.cgi +++ b/index.cgi @@ -226,8 +226,9 @@ function do_upload { spam=$(echo -n "$body" | cut_file "ignoreme") text=$(echo -n "$body" | cut_file "(text|x)") bans=$(echo -n "$REMOTE_ADDR" | grep -f blacklist) - [ ! -z "$spam" ] && respond "Spam check.." - [ ! -z "$bans" ] && respond "You have been banned" + + [ ! -z "$spam" ] && respond -h "Status: 403 Forbidden" "Spam check.." + [ ! -z "$bans" ] && respond -h "Status: 403 Forbidden" "You have been banned" [ -z "$text" ] && respond "No text pasted" # Format and save message @@ -274,22 +275,16 @@ function do_help { + + +