diff options
author | Yorhel <git@yorhel.nl> | 2010-10-12 14:40:42 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-10-12 14:40:42 +0200 |
commit | ec2176b35b706f7377a9d56b92589a7cd976a9a2 (patch) | |
tree | 2d8513272e43e4223e169e85c2eb5060c8258927 /index.cgi | |
parent | d82cfbc2fc04c230ec12a97bf83ac6a30567214e (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-x | index.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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(); |