WordPress Comment Editing Bug?

I just installed a blog system for my Dad…plain vanilla WordPress 1.2.2 package. It went fairly smoothly, but I had to modify a php file so I could edit comments from the admin interface.

In wp-admin/post.php, line 697, I added: $content = addslashes($content);

So it looks something like this:

    $content = balanceTags($content);
    $content = format_to_post($content);
    $content = addslashes($content);    // this is the new line

    $result = $wpdb->query("
            UPDATE $tablecomments SET
                comment_content = '$content',
                comment_author = '$newcomment_author',
                comment_author_email = '$newcomment_author_email',
                comment_author_url = '$newcomment_author_url'".$datemodif."
            WHERE comment_ID = $comment_ID"
      );

Prior to this, everytime I tried to edit a comment, I’d see a PHP error complaining about the database syntax. I’m not sure if everyone’s install is like this or not. Maybe I’m missing something. This was a fresh WordPress download too.