aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 23:47:58 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 23:47:58 +0200
commit7d65ce8c8e304dc8367f4492948514f2acc07a3b (patch)
tree1d1e8584ad326cf3ea7701e2a726a0f0ae1cb6cf /cforum.c
parent56509ab16c8d2225182eb0400e5c6a4900870391 (diff)
downloadcforum-7d65ce8c8e304dc8367f4492948514f2acc07a3b.tar.gz
Whatever
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cforum.c b/cforum.c
index 19dee61..2997ced 100644
--- a/cforum.c
+++ b/cforum.c
@@ -73,8 +73,8 @@ main(int argc, char *argv[])
postid = userid = 0;
while(p = nextparam(GET, 128)){
v = split(p);
- if(strcmp(p, "post") == 0) postid = atoi(v);
- else if(strcmp(p, "user") == 0) userid = atoi(v);
+ if(!postid && strcmp(p, "post") == 0) postid = atoi(v);
+ else if(!userid && strcmp(p, "user") == 0) userid = atoi(v);
}
/* Handle request. */