]> Pileus Git - vpaste/commitdiff
misc updates
authorAndy Spencer <andy753421@gmail.com>
Mon, 7 May 2012 04:09:43 +0000 (04:09 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 7 May 2012 04:09:43 +0000 (04:09 +0000)
index.cgi
vimrc

index 60978b2c211b3dcfd1ac81a7e83a12f12a701dd0..527ffa1a7ef11e91689c315b70605be82c0d68a0 100755 (executable)
--- 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 {
                        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
                        <meta name="description" content="vpaste: Vim based pastebin" />
                        <meta name="keywords" content="vpaste,paste,pastebin,vim" />
+                       <meta name="google-site-verification" content="OvHF73zD7osJ1VSq9rJxnMFlja36944ud6CiP_iXQnI" />
                        <style type="text/css">
                                *          { margin: 0;
                                             padding: 0; }
diff --git a/vimrc b/vimrc
index 79db8752cbb6e78fc0bf3fae2fb760ece3a80330..074722e08fc5837f22f736c3c64751c5cf0f46bc 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -21,6 +21,9 @@ let g:html_use_encoding   = "UTF-8"
 let g:html_no_progress    = 1
 let g:html_dynamic_folds  = 1
 
+" Misc
+let g:is_bash             = 1
+
 " Override these with modelines
 set nowrap noexpandtab
 au BufWinEnter * let g:html_expand_tabs = &expandtab