X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4f762f41612d1bfddcb960c0d9aecdbda03964b..4b263e5ef358411a345dee9ffef3ba69c19be40e:/src/html/htmlpars.cpp diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index dad3f09a42..308df6922a 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -2,7 +2,6 @@ // Name: src/html/htmlpars.cpp // Purpose: wxHtmlParser class (generic parser) // Author: Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -919,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);