summaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-10-12 14:40:42 +0200
committerYorhel <git@yorhel.nl>2010-10-12 14:40:42 +0200
commitec2176b35b706f7377a9d56b92589a7cd976a9a2 (patch)
tree2d8513272e43e4223e169e85c2eb5060c8258927 /index.cgi
parentd82cfbc2fc04c230ec12a97bf83ac6a30567214e (diff)
Removed password from index.cgi
The lighttpd setenv-module is now used to set the DBI_*-variables.
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index 987fdb4..e3259a9 100755
--- a/index.cgi
+++ b/index.cgi
@@ -29,8 +29,7 @@ use Encode 'decode_utf8', 'encode_utf8';
#$SIG{__WARN__} = sub { die $_[0] };
$ENV{LANG} = 'en_US.UTF-8';
-my $db = DBI->connect('dbi:Pg:dbname=bpaste', 'bpaste', 'DJbj4nYZ',
- { RaiseError => 1, pg_enable_utf8 => 1 });
+my $db = DBI->connect(undef, undef, undef, { RaiseError => 1, pg_enable_utf8 => 1 });
my @syntax = map /([^\/]+)\.vim$/?$1:(), glob "/usr/share/vim/vim72/syntax/*.vim";
my $cgi = CGI::Minimal->new();