Qt 4.8 compatibility for escaping HTML

Change-Id: I63fb59190b510b08db588ee8fe828f5df345d83a
Fixes: v2.5.0rc0-2548-gf5a8711ef1 ("Qt: About dialog updates.")
Reviewed-on: https://code.wireshark.org/review/26486
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Peter Wu 2018-03-15 19:05:46 +01:00 committed by Gerald Combs
parent 1e1274a889
commit c7fda768f4
1 changed files with 4 additions and 4 deletions

View File

@ -304,10 +304,10 @@ AboutDialog::AboutDialog(QWidget *parent) :
/* Wireshark tab */
/* Construct the message string */
message = "<p>Version " + vcs_version_info_str.toHtmlEscaped() + "</p>\n\n";
message += "<p>" + copyright_info_str.toHtmlEscaped() + "</p>\n\n";
message += "<p>" + comp_info_str.toHtmlEscaped() + "</p>\n\n";
message += "<p>" + runtime_info_str.toHtmlEscaped() + "</p>\n\n";
message = "<p>Version " + html_escape(vcs_version_info_str) + "</p>\n\n";
message += "<p>" + html_escape(copyright_info_str) + "</p>\n\n";
message += "<p>" + html_escape(comp_info_str) + "</p>\n\n";
message += "<p>" + html_escape(runtime_info_str) + "</p>\n\n";
message += "<p>Wireshark is Open Source Software released under the GNU General Public License.</p>\n\n";
message += "<p>Check the man page and http://www.wireshark.org for more information.</p>\n\n";