Fossil SCM
In the /forumthread page, stop trying to render immediately upon encountering an error.
Commit
61998ec8aa4f567cbb21f9ad3eeac11e8320184c1d3c822c5a4f3d82dcdaa3cd
Parent
af8d09b267c9160…
1 file changed
+2
+2
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -1608,10 +1608,11 @@ | ||
| 1608 | 1608 | login_needed(g.anon.RdForum); |
| 1609 | 1609 | return; |
| 1610 | 1610 | } |
| 1611 | 1611 | if( zName==0 ){ |
| 1612 | 1612 | webpage_error("Missing \"name=\" query parameter"); |
| 1613 | + return; | |
| 1613 | 1614 | } |
| 1614 | 1615 | cgi_check_for_malice(); |
| 1615 | 1616 | fpid = symbolic_name_to_rid(zName, "f"); |
| 1616 | 1617 | if( fpid<=0 ){ |
| 1617 | 1618 | if( fpid==0 ){ |
| @@ -1622,10 +1623,11 @@ | ||
| 1622 | 1623 | return; |
| 1623 | 1624 | } |
| 1624 | 1625 | froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid); |
| 1625 | 1626 | if( froot==0 ){ |
| 1626 | 1627 | webpage_notfound_error("Not a forum post: \"%s\"", zName); |
| 1628 | + return; | |
| 1627 | 1629 | } |
| 1628 | 1630 | |
| 1629 | 1631 | /* Decode the mode parameters. */ |
| 1630 | 1632 | if( bRaw ){ |
| 1631 | 1633 | mode = FD_RAW; |
| 1632 | 1634 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -1608,10 +1608,11 @@ | |
| 1608 | login_needed(g.anon.RdForum); |
| 1609 | return; |
| 1610 | } |
| 1611 | if( zName==0 ){ |
| 1612 | webpage_error("Missing \"name=\" query parameter"); |
| 1613 | } |
| 1614 | cgi_check_for_malice(); |
| 1615 | fpid = symbolic_name_to_rid(zName, "f"); |
| 1616 | if( fpid<=0 ){ |
| 1617 | if( fpid==0 ){ |
| @@ -1622,10 +1623,11 @@ | |
| 1622 | return; |
| 1623 | } |
| 1624 | froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid); |
| 1625 | if( froot==0 ){ |
| 1626 | webpage_notfound_error("Not a forum post: \"%s\"", zName); |
| 1627 | } |
| 1628 | |
| 1629 | /* Decode the mode parameters. */ |
| 1630 | if( bRaw ){ |
| 1631 | mode = FD_RAW; |
| 1632 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -1608,10 +1608,11 @@ | |
| 1608 | login_needed(g.anon.RdForum); |
| 1609 | return; |
| 1610 | } |
| 1611 | if( zName==0 ){ |
| 1612 | webpage_error("Missing \"name=\" query parameter"); |
| 1613 | return; |
| 1614 | } |
| 1615 | cgi_check_for_malice(); |
| 1616 | fpid = symbolic_name_to_rid(zName, "f"); |
| 1617 | if( fpid<=0 ){ |
| 1618 | if( fpid==0 ){ |
| @@ -1622,10 +1623,11 @@ | |
| 1623 | return; |
| 1624 | } |
| 1625 | froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid); |
| 1626 | if( froot==0 ){ |
| 1627 | webpage_notfound_error("Not a forum post: \"%s\"", zName); |
| 1628 | return; |
| 1629 | } |
| 1630 | |
| 1631 | /* Decode the mode parameters. */ |
| 1632 | if( bRaw ){ |
| 1633 | mode = FD_RAW; |
| 1634 |