Change all instances of "URI" to "URL" because that's more sensible
[citadel.git] / webcit-ng / static.c
index 80f506431e1a68b2ede0cf3894cf9c0bdd8ee159..f2b7811e0fd5a61ad614ca8af6d5fd3d8b5adb99 100644 (file)
@@ -21,7 +21,7 @@ void output_static(struct http_transaction *h) {
        char filename[PATH_MAX];
        struct stat statbuf;
 
-       snprintf(filename, sizeof filename, "static/%s", &h->uri[8]);
+       snprintf(filename, sizeof filename, "static/%s", &h->url[8]);
 
        if (strstr(filename, "../")) {          // 100% guaranteed attacker.
                do_404(h);                      // Die in a car fire.