diff --git a/DatabasePdoPgsql.php b/DatabasePdoPgsql.php index 445ef25..98c636d 100644 --- a/DatabasePdoPgsql.php +++ b/DatabasePdoPgsql.php @@ -3,7 +3,7 @@ /** * PDO/PostgreSQL wrapper with (mostly) DatabaseMySQL interface :) * Select builder is inspired by MediaWiki's one. - * Version: 2018-09-18 + * Version: 2018-10-09 * (c) Vitaliy Filippov, 2015-2018 */ @@ -135,7 +135,7 @@ class DatabasePdoPgsql implements Database function quoteId($name) { - return '"'.str_replace('"', '""', $name).'"'; + return '"'.str_replace('"', '""', str_replace("\0", "", $name)).'"'; } function quoteInto($str, $params)