[Libreoffice-commits] core.git: svtools/source
Kohei Yoshida
kohei.yoshida at collabora.com
Wed Feb 19 22:36:01 CET 2014
svtools/source/svhtml/htmlkywd.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 1f74a3ce201bad68f160584900285e2c087ab2c0
Author: Kohei Yoshida <kohei.yoshida at 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,
More information about the Libreoffice-commits
mailing list