summaryrefslogtreecommitdiff
path: root/ui/qt/sequence_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-05-25 14:39:20 -0700
committerGerald Combs <gerald@wireshark.org>2016-05-25 22:56:38 +0000
commitb9487a7fac74daa89346f44c1d8b800a436ddb15 (patch)
tree8876ce34b1a5503ad3618934618e6a6faab556f0 /ui/qt/sequence_dialog.cpp
parentf4748af360f816ae955ad44216f7ed0dea3af07f (diff)
downloadwireshark-b9487a7fac74daa89346f44c1d8b800a436ddb15.tar.gz
Qt: Escape sequence dialog hint text.
Escape HTML markup before showing hint text. Otherwise things like SIP addresses won't be displayed correctly. Change-Id: I5ceae978af0ff9e253dae4d3ec8ad9da20948de0 Reviewed-on: https://code.wireshark.org/review/15561 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/sequence_dialog.cpp')
-rw-r--r--ui/qt/sequence_dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp
index 4bd5d9d548..e948acfc8a 100644
--- a/ui/qt/sequence_dialog.cpp
+++ b/ui/qt/sequence_dialog.cpp
@@ -288,7 +288,8 @@ void SequenceDialog::mouseMoved(QMouseEvent *event)
seq_analysis_item_t *sai = seq_diagram_->itemForPosY(event->pos().y());
if (sai) {
packet_num_ = sai->frame_number;
- hint = QString("Packet %1: %2").arg(packet_num_).arg(sai->comment);
+ QString raw_comment = sai->comment;
+ hint = QString("Packet %1: %2").arg(packet_num_).arg(raw_comment.toHtmlEscaped());
}
}