Skip to content
Snippets Groups Projects
Commit eda7b8a8 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2232881 by danblack: pdo used to require comment escaping - doesn'\''t on supported versions

parent 36adf946
No related branches found
No related tags found
No related merge requests found
......@@ -474,9 +474,6 @@ public function changeField($table, $field, $field_new, $spec, $keys_new = array
}
public function prepareComment($comment, $length = NULL) {
// 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment