-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Also check the path based mimetype for flow rule checks #23096
Conversation
… be detemined though the content Signed-off-by: Julius Härtl <jus@bitgrid.net>
6b98b9f
to
6347968
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
@juliushaertl Backport? |
/backport to stable20 |
/backport to stable19 |
This one causes the directory checks are not working anymore in the files_accesscontrol app. Because directories are detected as "application/octect-stream" and then a check against "httpd/unix-directory" does not match anymore. Let me check how to fix this. |
… only for non-directories Ref #23096 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
… only for non-directories Ref #23096 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
… only for non-directories Ref #23096 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Before this PR it is not possible to match workflow rules against application/javascript or application/x-ms-dos-executable since they are not part of the mimetypemappings and the detectContents always uses the secure fallback, so checking for those file types for example always fails:
This PR makes sure that when checking for a workflow rule both the detected type on the content and path are checked.