diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-11 21:59:21 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-11 21:59:21 -0400 |
| commit | 785ac61778829e572556f4c9f40026e6b624e81e (patch) | |
| tree | c388cefd9ee3da15e2c5da65f967fc59dcbce300 /ws2a/newbug.c | |
| parent | ee754bb07dbe1f40b0a6669f0d25d832304329e3 (diff) | |
| download | webpage-785ac61778829e572556f4c9f40026e6b624e81e.tar.gz webpage-785ac61778829e572556f4c9f40026e6b624e81e.tar.bz2 webpage-785ac61778829e572556f4c9f40026e6b624e81e.zip | |
Changed new bug to redirect to it's newly created bug page
Diffstat (limited to 'ws2a/newbug.c')
| -rw-r--r-- | ws2a/newbug.c | 5 |
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"); |
