Skip to content

Conversation

@PVince81
Copy link
Contributor

Description

Fix mimetype detection inside hidden folders.
There was a check to find out whether a file name contains a dot, but it was including the whole path instead of just the basename so the strpos call would return 0 and skip detection if the path looks like ".hidden/test.jpg" because of the leading dot.

Related Issue

Fixes #26133

Motivation and Context

See issue

How Has This Been Tested?

See steps in issue.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Backports

  • stable9
  • stable8.2 (regression, where the bug was introduced)

@PVince81
Copy link
Contributor Author

Please review @VicDeo @DeepDiver1975 @jvillafanez

@PVince81
Copy link
Contributor Author

@owncloud/filesystem

@DeepDiver1975
Copy link
Member

tested 👍

@DeepDiver1975 DeepDiver1975 modified the milestones: 9.2, 9.1.2 Sep 19, 2016
@DeepDiver1975
Copy link
Member

jenkins is green -> merge

@DeepDiver1975 DeepDiver1975 merged commit 3f53730 into master Sep 19, 2016
@DeepDiver1975 DeepDiver1975 deleted the fix-mimetypedetect-hiddenfolder branch September 19, 2016 13:41
LukasReschke pushed a commit to nextcloud/server that referenced this pull request Sep 26, 2016
Downstreaming of owncloud/core#26138

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Files in hidden directories do not have their MIME types detected

3 participants