Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions includes/objects/attention.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ public function submit()
);
}

// Emojis and other four byte characters are not allowed by MySQL in the
// utf8 columns these are stored in, so replace them with their numeric
// character reference, as core does for report text.
$this->attention_title = utf8_encode_ucr($this->attention_title);
$this->attention_description = utf8_encode_ucr($this->attention_description);

parent::submit();
}

Expand Down