You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended handling of php in nginx includes "try_files $uri =404;", which matches exact file names, so /uploads/somelegal.git/with-malicious-code.php doesn't lead to code execution. Unfortunately that breaks with /remote.php/some-more-path-elements.
The following nginx configuration allows for the try_files test and PATH_INFO to be set correctly. This depend on __internal_path to never be used by owncloud itself.
The recommended handling of php in nginx includes "try_files $uri =404;", which matches exact file names, so /uploads/somelegal.git/with-malicious-code.php doesn't lead to code execution. Unfortunately that breaks with /remote.php/some-more-path-elements.
The following nginx configuration allows for the try_files test and PATH_INFO to be set correctly. This depend on __internal_path to never be used by owncloud itself.
The text was updated successfully, but these errors were encountered: