Fossil SCM

Fix embedded HTML detection for the 'doc' web page when the 'data-title' attribute is not specified.

mistachkin 2019-08-19 00:51 trunk
Commit 3d6a4fd95ce9572d04d4d788e581146869e7e03e00d21116eeb9e78218b1af90
1 file changed +1 -1
+1 -1
--- src/doc.c
+++ src/doc.c
@@ -422,11 +422,11 @@
422422
while( fossil_isspace(zIn[0]) ) zIn++;
423423
if( fossil_strnicmp(zIn,"<div",4)!=0 ) return 0;
424424
zIn += 4;
425425
while( zIn[0] ){
426426
if( fossil_isspace(zIn[0]) ) zIn++;
427
- if( zIn[0]=='>' ) return 0;
427
+ if( zIn[0]=='>' ) break;
428428
zAttr = zIn;
429429
while( fossil_isalnum(zIn[0]) || zIn[0]=='-' ) zIn++;
430430
nAttr = (int)(zIn - zAttr);
431431
while( fossil_isspace(zIn[0]) ) zIn++;
432432
if( zIn[0]!='=' ) continue;
433433
--- src/doc.c
+++ src/doc.c
@@ -422,11 +422,11 @@
422 while( fossil_isspace(zIn[0]) ) zIn++;
423 if( fossil_strnicmp(zIn,"<div",4)!=0 ) return 0;
424 zIn += 4;
425 while( zIn[0] ){
426 if( fossil_isspace(zIn[0]) ) zIn++;
427 if( zIn[0]=='>' ) return 0;
428 zAttr = zIn;
429 while( fossil_isalnum(zIn[0]) || zIn[0]=='-' ) zIn++;
430 nAttr = (int)(zIn - zAttr);
431 while( fossil_isspace(zIn[0]) ) zIn++;
432 if( zIn[0]!='=' ) continue;
433
--- src/doc.c
+++ src/doc.c
@@ -422,11 +422,11 @@
422 while( fossil_isspace(zIn[0]) ) zIn++;
423 if( fossil_strnicmp(zIn,"<div",4)!=0 ) return 0;
424 zIn += 4;
425 while( zIn[0] ){
426 if( fossil_isspace(zIn[0]) ) zIn++;
427 if( zIn[0]=='>' ) break;
428 zAttr = zIn;
429 while( fossil_isalnum(zIn[0]) || zIn[0]=='-' ) zIn++;
430 nAttr = (int)(zIn - zAttr);
431 while( fossil_isspace(zIn[0]) ) zIn++;
432 if( zIn[0]!='=' ) continue;
433

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button