svtools/source/svhtml/htmlkywd.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 1f74a3ce201bad68f160584900285e2c087ab2c0 Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Wed Feb 19 16:34:19 2014 -0500 fdo#74584: Upcase the tag name before searching. Else HTML import or detection code would fail. Change-Id: Id79e8eac87d8001527f068f8fd49636353dc38d5 diff --git a/svtools/source/svhtml/htmlkywd.cxx b/svtools/source/svhtml/htmlkywd.cxx index c0b7915..affbc86 100644 --- a/svtools/source/svhtml/htmlkywd.cxx +++ b/svtools/source/svhtml/htmlkywd.cxx @@ -189,6 +189,7 @@ static int SAL_CALL HTMLKeyCompare( const void *pFirst, const void *pSecond) int GetHTMLToken( const OUString& rName ) { + OUString aNameUpper = rName.toAsciiUpperCase(); if( !bSortKeyWords ) { qsort( (void*) aHTMLTokenTab, @@ -200,12 +201,12 @@ int GetHTMLToken( const OUString& rName ) int nRet = 0; - if( !rName.compareTo( OOO_STRING_SVTOOLS_HTML_comment, 3 ) ) + if (!aNameUpper.compareTo(OOO_STRING_SVTOOLS_HTML_comment, 3)) return HTML_COMMENT; void* pFound; HTML_TokenEntry aSrch; - aSrch.pUToken = &rName; + aSrch.pUToken = &aNameUpper; aSrch.nToken = -1; pFound = bsearch( (sal_Char *) &aSrch, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits