diff options
| author | cents <sens03.con@gmail.com> | 2020-05-23 09:54:33 -0700 |
|---|---|---|
| committer | cents <sens03.con@gmail.com> | 2020-05-23 09:54:33 -0700 |
| commit | 53c72227c4ade7c3e28bf0051346d297f56e51be (patch) | |
| tree | 11da5037235571a30cab83c32439c0e74a20d78d | |
| parent | 86cc7950061f3efb346cc7510d71dfb681a26172 (diff) | |
Disable html injection
| -rw-r--r-- | src/courtroom.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 11c0bdab..4d73507c 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -2293,12 +2293,10 @@ QString Courtroom::filter_ic_text(QString p_text, bool skip_filter, bool delay_pop = false;
while (trick_check_pos < p_text.size()) {
f_character = p_text.at(trick_check_pos);
- if (!skip_filter) {
if (f_character == "<")
f_character = "<";
else if (f_character == ">")
f_character = ">";
- }
// Escape character.
if (f_character == "\\" && !ic_next_is_not_special) {
ic_next_is_not_special = true;
@@ -2511,10 +2509,9 @@ QString Courtroom::filter_ic_text(QString p_text, bool skip_filter, * \param p_text The text to be appended
* \param p_name The name of the character/entity who sent said text
* \param is_songchange Whether we are appending a song entry
- * \param force_filter If we are sending plain text and we want to force the
- * \param filtering regardless of its status (e.g chat entry, song change etc)
- * \param skip_filter If we are sending appending text such as html so we skip the
- * \param filter chat_color The color of the message sent
+ * \param force_filter If we are sending plain text and we want to force the filtering regardless of its status (e.g chat entry, song change etc)
+ * \param skip_filter If we are sending appending text such as html so we skip the html filter
+ * \param chat_color The color of the message sent
*/
void Courtroom::append_ic_text(QString p_text, QString p_name,
|
