summaryrefslogtreecommitdiff
path: root/ws2a/bugcomment.c
diff options
context:
space:
mode:
Diffstat (limited to 'ws2a/bugcomment.c')
-rw-r--r--ws2a/bugcomment.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c
index ce11a85..130087b 100644
--- a/ws2a/bugcomment.c
+++ b/ws2a/bugcomment.c
@@ -24,7 +24,10 @@ char* replaceHTML(char* str){
int hex;
sscanf(str+strp,"%%%x",&hex);
//printf("Was:%c\n",(char)hex);
- if(hex == 0x0D) continue;
+ if(hex == 0x0D){
+ strp+=3;
+ continue;
+ }
if(hex == 0x0A){
nstr[nstrp] = '\\';
nstr[nstrp+1] = 'n';
@@ -158,9 +161,9 @@ int main(){
char* duid = useridhash(userid);
char* dcomment = replaceHTML(comment);
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("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);