Fossil SCM
Fix embedded HTML detection for the 'doc' web page when the 'data-title' attribute is not specified.
Commit
3d6a4fd95ce9572d04d4d788e581146869e7e03e00d21116eeb9e78218b1af90
Parent
d570edc646f54de…
1 file changed
+1
-1
+1
-1
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -422,11 +422,11 @@ | ||
| 422 | 422 | while( fossil_isspace(zIn[0]) ) zIn++; |
| 423 | 423 | if( fossil_strnicmp(zIn,"<div",4)!=0 ) return 0; |
| 424 | 424 | zIn += 4; |
| 425 | 425 | while( zIn[0] ){ |
| 426 | 426 | if( fossil_isspace(zIn[0]) ) zIn++; |
| 427 | - if( zIn[0]=='>' ) return 0; | |
| 427 | + if( zIn[0]=='>' ) break; | |
| 428 | 428 | zAttr = zIn; |
| 429 | 429 | while( fossil_isalnum(zIn[0]) || zIn[0]=='-' ) zIn++; |
| 430 | 430 | nAttr = (int)(zIn - zAttr); |
| 431 | 431 | while( fossil_isspace(zIn[0]) ) zIn++; |
| 432 | 432 | if( zIn[0]!='=' ) continue; |
| 433 | 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]=='>' ) 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 |