From: Andy Spencer Date: Mon, 7 May 2012 04:09:43 +0000 (+0000) Subject: misc updates X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain;h=ab4ab05a4ccebf461dd9cd2d1e2a767c40578e9a misc updates --- diff --git a/index.cgi b/index.cgi index 60978b2..527ffa1 100755 --- a/index.cgi +++ b/index.cgi @@ -93,7 +93,8 @@ function do_print { # Check for raw paste if [[ "$QUERY_STRING" == 'raw'* || "$REQUEST_URI" != *'?'* && - "$HTTP_ACCEPT" != *'html'* ]]; then + ( "$input" != 'db/'* || + "$HTTP_ACCEPT" != *'html'* ) ]]; then header text/plain sed "$trim" "$input" exit @@ -173,6 +174,7 @@ function do_help { +