Bug 15760 RMaint Avoid SQL injections
For security purpose, backport a fix to the way the DB connection is established.
This commit is contained in:
parent
9ac267821e
commit
23716ebcc3
|
|
@ -52,7 +52,13 @@ sub _new_schema {
|
|||
|
||||
# we are letting C4::Context->dbh not set the RaiseError handle attribute
|
||||
# for now for compatbility purposes
|
||||
my $schema = Koha::Schema->connect( sub { C4::Context->dbh }, { unsafe => 1 } );
|
||||
my $schema = Koha::Schema->connect(
|
||||
sub { C4::Context->dbh },
|
||||
{
|
||||
unsafe => 1,
|
||||
quote_names => 1,
|
||||
}
|
||||
);
|
||||
return $schema;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue