summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-03-18 13:49:28 +0100
committerPetr Mladek <pmladek@suse.cz>2011-03-18 13:49:28 +0100
commit95e301d0a55b8145ce0cdb037e438bbcfcd4a4eb (patch)
tree835a2a1cfadb8931ecd67cdf357fdae59180813f
parentf10a9aa101d24c0aca00b1f5f20090c8700b5ed0 (diff)
slightly updated fix for import problems with unsupported HTML tag (fdo#34666)
-rw-r--r--svtools/source/svhtml/parhtml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 81e12737de..7cd8dfb46e 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1253,10 +1253,10 @@ int HTMLParser::_GetNextToken()
{
ScanText( '>' );
- // #i34666# closing "/>"?:
+ // fdo#34666: closing "/>"?:
// return HTML_UNKNOWNCONTROL_OFF instead of
// HTML_UNKNOWNCONTROL_ON
- if ('/' == aToken.GetChar(aToken.Len()-1)) {
+ if (aToken.Len() >= 1 && '/' == aToken.GetChar(aToken.Len()-1)) {
if (HTML_UNKNOWNCONTROL_ON == nRet)
nRet = HTML_UNKNOWNCONTROL_OFF;
}