summaryrefslogtreecommitdiff
path: root/svtools/source
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
commit6996c17ac5f276f46cf6f5da1f70ee18c318fae1 (patch)
treee58e751fb59c3009b00255dd56c6011e92135708 /svtools/source
parent89ec94736f2eef02cb97dc77e33bf404b7a215a2 (diff)
slightly updated fix for import problems with unsupported HTML tag (fdo#34666)
Diffstat (limited to 'svtools/source')
-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 be79f00627cf..5d2302b9d8fe 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;
}