Remove \0 from quoted ids
parent
be74f89d55
commit
0042f199e7
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :)
|
* PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :)
|
||||||
* Select builder is inspired by MediaWiki's one.
|
* Select builder is inspired by MediaWiki's one.
|
||||||
* Version: 2018-09-18
|
* Version: 2018-10-09
|
||||||
* (c) Vitaliy Filippov, 2015-2018
|
* (c) Vitaliy Filippov, 2015-2018
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ class DatabasePdoPgsql implements Database
|
||||||
|
|
||||||
function quoteId($name)
|
function quoteId($name)
|
||||||
{
|
{
|
||||||
return '"'.str_replace('"', '""', $name).'"';
|
return '"'.str_replace('"', '""', str_replace("\0", "", $name)).'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
function quoteInto($str, $params)
|
function quoteInto($str, $params)
|
||||||
|
|
Loading…
Reference in New Issue