Skip to content

Conversation

@MegaManSec
Copy link

No description provided.

@sonarqubecloud
Copy link

@MegaManSec
Copy link
Author

By the way, is error_page evil too? It too checks for the existence of files on every load.

return 200 "hi";
}
location /abc {
try_files "" @say_hi;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try_files is not less evil if it uses a named location. The first args matter: here you are checking for file with empty name… have you confirmed this hack does not do a stat for "" ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I did check with gdb to see whether stat was running, but I don't remember; it was so long ago. I no longer have the ability to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants