| Versionen | |
|---|---|
| drupal7 | public DatabaseSchema_mysql::prepareComment($comment, $length = NULL) |
includes/
<?php
public function prepareComment($comment, $length = NULL) {
// Decode HTML-encoded comments.
$comment = decode_entities(strip_tags($comment));
// Work around a bug in some versions of PDO, see http://bugs.php.net/bug.php?id=41125
$comment = str_replace("'", '’', $comment);
// Truncate comment to maximum comment length.
if (isset($length)) {
// Add table prefixes before truncating.
$comment = truncate_utf8($this->connection->prefixTables($comment), $length, TRUE, TRUE);
}
return $this->connection->quote($comment);
}
?>
Kommentare
Kommentar hinzufügen