]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static.c
Finished converting all the comments in webcit-ng to C99 style
[citadel.git] / webcit-ng / static.c
index bd8d3cda8efdea826dd4c0d832f2d9ae787f8e65..8b74834244a140b9ad9b75198e40431ab3d7264e 100644 (file)
@@ -23,8 +23,8 @@ void output_static(struct http_transaction *h) {
 
        snprintf(filename, sizeof filename, "static/%s", &h->uri[8]);
 
-       if (strstr(filename, "../")) {  // 100% guaranteed attacker.
-               do_404(h);      // Die in a car fire.
+       if (strstr(filename, "../")) {          // 100% guaranteed attacker.
+               do_404(h);                      // Die in a car fire.
                return;
        }
 
@@ -43,7 +43,7 @@ void output_static(struct http_transaction *h) {
        else {
                h->response_body_length = 0;
        }
-       fclose(fp);             // Content is now in memory.
+       fclose(fp);                             // Content is now in memory.
 
        h->response_code = 200;
        h->response_string = strdup("OK");