diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-17 23:47:58 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-17 23:47:58 +0200 |
commit | 7d65ce8c8e304dc8367f4492948514f2acc07a3b (patch) | |
tree | 1d1e8584ad326cf3ea7701e2a726a0f0ae1cb6cf /cforum.c | |
parent | 56509ab16c8d2225182eb0400e5c6a4900870391 (diff) | |
download | cforum-7d65ce8c8e304dc8367f4492948514f2acc07a3b.tar.gz |
Whatever
Diffstat (limited to 'cforum.c')
-rw-r--r-- | cforum.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |