diff options
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. */ |