diff --git a/src/main.zig b/src/main.zig index c323716..54a0c3d 100644 --- a/src/main.zig +++ b/src/main.zig @@ -61,6 +61,7 @@ pub fn blog(self: *Self, req: zap.Request) void { // looking for /blog?post=post_name if(req.getParamSlice("post")) |value| { std.log.info("post name: {s}", .{value}); + // THIS IS SO DANGEROUS WHY DID I LET THIS THROUGH AHAHAHAHA const filepath = std.fmt.allocPrint(self.allocator, "src/public/blog/{s}", .{value}) catch return; defer self.allocator.free(filepath); const file_content = std.fs.cwd().readFileAlloc(self.allocator, filepath, std.math.maxInt(usize)) catch return; diff --git a/src/public/.index.html.swp b/src/public/.index.html.swp deleted file mode 100644 index b71de28..0000000 Binary files a/src/public/.index.html.swp and /dev/null differ