summaryrefslogtreecommitdiff
path: root/ws2a/newbug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ws2a/newbug.c')
-rw-r--r--ws2a/newbug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ws2a/newbug.c b/ws2a/newbug.c
index 8c3d863..cda4e38 100644
--- a/ws2a/newbug.c
+++ b/ws2a/newbug.c
@@ -119,7 +119,7 @@ int main(){
sscanf(ilongdesc,"longdesc=%s",longdesc);
sscanf(icaptcha,"captcha=%s",captcha);
- printf("name:%s\nid:%s\nshort:%s\nlong:%s\ncaptcha:%s\n",name,userid,shortdesc,longdesc,captcha);
+ //printf("name:%s\nid:%s\nshort:%s\nlong:%s\ncaptcha:%s\n",name,userid,shortdesc,longdesc,captcha);
//Check captcha
char captchapath[100];
@@ -167,7 +167,8 @@ int main(){
timeinfo = localtime(&rawtime);
char* dshortd = replaceHTML(shortdesc);
char* dlongd = replaceHTML(longdesc);
- printf("Right before printing to file\n");
+ printf("Location: ../ws2a/bugview.html?id=%s\n\n",lastbug);
+ //printf("Right before printing to file\n");
char newfilepath[100];
sprintf(newfilepath,"../ws2a/bugs/%llu",lastbug);
FILE* newfile = fopen(newfilepath,"w");