Fossil SCM

In the /forumthread page, stop trying to render immediately upon encountering an error.

drh 2026-07-13 10:41 UTC trunk
Commit 61998ec8aa4f567cbb21f9ad3eeac11e8320184c1d3c822c5a4f3d82dcdaa3cd
1 file changed +2
--- src/forum.c
+++ src/forum.c
@@ -1608,10 +1608,11 @@
16081608
login_needed(g.anon.RdForum);
16091609
return;
16101610
}
16111611
if( zName==0 ){
16121612
webpage_error("Missing \"name=\" query parameter");
1613
+ return;
16131614
}
16141615
cgi_check_for_malice();
16151616
fpid = symbolic_name_to_rid(zName, "f");
16161617
if( fpid<=0 ){
16171618
if( fpid==0 ){
@@ -1622,10 +1623,11 @@
16221623
return;
16231624
}
16241625
froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid);
16251626
if( froot==0 ){
16261627
webpage_notfound_error("Not a forum post: \"%s\"", zName);
1628
+ return;
16271629
}
16281630
16291631
/* Decode the mode parameters. */
16301632
if( bRaw ){
16311633
mode = FD_RAW;
16321634
--- 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

Keyboard Shortcuts

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