summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-16 15:07:13 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-16 15:07:13 -0700
commit179161d05ee037292202a15507d38166f8a7ee4a (patch)
treeff2420582ab3a26fbaed223dacca8cbf0aac78d3
parent35bbffcc29fcf592b8dde3670d12f543258f01e0 (diff)
Fix two bugs:
#1161: guest comments get dropped because of a missing email address. #1075: G2 comments with " get turned into &quot;
-rw-r--r--modules/g2_import/helpers/g2_import.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index 575d02bb..2a549146 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -826,6 +826,7 @@ class g2_import_Core {
$text .= " ";
}
$text .= $g2_comment->getComment();
+ $text = html_entity_decode($text);
// Just import the fields we know about. Do this outside of the comment API for now so that
// we don't trigger spam filtering events
@@ -835,6 +836,7 @@ class g2_import_Core {
if ($comment->author_id == identity::guest()->id) {
$comment->guest_name = $g2_comment->getAuthor();
$comment->guest_name or $comment->guest_name = (string) t("Anonymous coward");
+ $comment->guest_email = "unknown@nobody.com";
}
$comment->item_id = $item_id;
$comment->text = self::_transform_bbcode($text);