Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@

// Additional checks for suspicious patterns
const suspiciousPatterns = [
/\x00/, // Null bytes

Check failure on line 181 in server.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Unexpected control character(s) in regular expression: \x00

Check failure on line 181 in server.js

View workflow job for this annotation

GitHub Actions / test (20.x)

Unexpected control character(s) in regular expression: \x00
/[<>"|*?]/, // Dangerous file characters
/^\//, // Absolute paths
/^[a-zA-Z]:\\/, // Windows absolute paths
Expand Down Expand Up @@ -471,7 +471,7 @@
timestamp: Date.now()
});

// Clean old cache entries periodically
// Clean old cache entries periodically using setImmediate to avoid blocking the response
if (requestCache.size > 100) {
// ⚑ Bolt Optimization: Run cleanup asynchronously to avoid blocking the main thread
setImmediate(() => {
Expand Down
Loading