Skip to content

Commit

Permalink
web: die if MXQ_MYSQL_DEFAULT_FILE is unreadable
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Aug 13, 2015
1 parent a002011 commit c34fd2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/pages/mxq/mxq.in
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ EOF

sub db_init {

open my $test,"<@MXQ_MYSQL_DEFAULT_FILE@" or die "@MXQ_MYSQL_DEFAULT_FILE@: $!\n";
$dbh= DBI->connect('DBI:mysql:mysql_read_default_file=@MXQ_MYSQL_DEFAULT_FILE@',undef,undef, { RaiseError => 1, AutoCommit => 1 });
# mxq_group.h
register_group_status(
Expand Down

0 comments on commit c34fd2a

Please sign in to comment.