DB escaping comments. MDL-8918

Merged from MOODLE_17_STABLE
This commit is contained in:
stronk7
2007-03-15 19:01:53 +00:00
parent e1578125e4
commit 6a3d064a00
3 changed files with 3 additions and 3 deletions
@@ -135,7 +135,7 @@ class XMLDBpostgres7 extends XMLDBgenerator {
function getCommentSQL ($xmldb_table) {
$comment = "COMMENT ON TABLE " . $this->getTableName($xmldb_table);
$comment.= " IS '" . substr($xmldb_table->getComment(), 0, 250) . "'";
$comment.= " IS '" . addslashes(substr($xmldb_table->getComment(), 0, 250)) . "'";
return array($comment);
}