X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f66f6a5b3583b02c34854556eb83e3a808524ce..4b263e5ef358411a345dee9ffef3ba69c19be40e:/src/html/htmlpars.cpp diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 0e38da7bc4..308df6922a 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -918,11 +918,13 @@ bool wxMetaTagHandler::HandleTag(const wxHtmlTag& tag) return false; } - if (tag.HasParam(wxT("HTTP-EQUIV")) && - tag.GetParam(wxT("HTTP-EQUIV")).IsSameAs(wxT("Content-Type"), false) && - tag.HasParam(wxT("CONTENT"))) + wxString httpEquiv, + content; + if (tag.GetParamAsString(wxT("HTTP-EQUIV"), &httpEquiv) && + httpEquiv.IsSameAs(wxT("Content-Type"), false) && + tag.GetParamAsString(wxT("CONTENT"), &content)) { - wxString content = tag.GetParam(wxT("CONTENT")).Lower(); + content.MakeLower(); if (content.Left(19) == wxT("text/html; charset=")) { *m_retval = content.Mid(19);