summaryrefslogtreecommitdiff
path: root/ws2a
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-11 18:34:26 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-11 18:34:26 -0400
commitcd8928030f57dd853d3fa9357afe486846880e0d (patch)
treea8fe5440743fe19bf60f9c64fdfd9525d4839f82 /ws2a
parent157e82529fa2cc54186a1fec93ef9c3138b05f48 (diff)
downloadwebpage-cd8928030f57dd853d3fa9357afe486846880e0d.tar.gz
webpage-cd8928030f57dd853d3fa9357afe486846880e0d.tar.bz2
webpage-cd8928030f57dd853d3fa9357afe486846880e0d.zip
More work on getting new lines to work for comments
Diffstat (limited to 'ws2a')
-rw-r--r--ws2a/bugcomment.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c
index 6464314..a72488b 100644
--- a/ws2a/bugcomment.c
+++ b/ws2a/bugcomment.c
@@ -157,8 +157,10 @@ int main(){
char* dname = replaceHTML(name);
char* duid = useridhash(userid);
char* dcomment = replaceHTML(comment);
- printf("Location: ../ws2a/bugview.html?id=%s\n\n",bugid);
- //printf("<p>data:%s",data);
+ printf("%s%c%c\n","Content-Type:text/html;charset=iso-8859-1",13,10);
+ //printf("Location: ../ws2a/bugview.html?id=%s\n\n",bugid);
+ printf("<p>data:%s",data);
+ printf("<p>comment:%s<p>dcomment:%s",comment,dcomment);
//printf("Everything ok, inserting comment!");
fprintf(bugfile,"\n%s\n%s\n%s\n",dname,duid,dcomment);
free(dname);