fdo#74584: Upcase the tag name before searching.
Else HTML import or detection code would fail. Change-Id: Id79e8eac87d8001527f068f8fd49636353dc38d5
This commit is contained in:
parent
488bb7ca0c
commit
1f74a3ce20
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue