Skip to content

Commit

Permalink
[fc] Repository: plone.restapi
Browse files Browse the repository at this point in the history
Branch: refs/heads/main
Date: 2023-10-28T22:15:39+02:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/plone.restapi@f37cd9c

Be more strict when checking if mimetype is allowed inline. (#1724)

* Be more strict when checking if mimetype is allowed to be displayed inline.

This takes over some code from zopefoundation/Zope#1167.
See also plone/plone.namedfile#154

* Copy a test for extract_media_type from Zope.

* Rename extract_media_type to _extract_media_type to signal it as private.

Files changed:
A news/1167.bugfix
M src/plone/restapi/services/users/get.py
M src/plone/restapi/tests/test_services_users.py
  • Loading branch information
tisto committed Oct 28, 2023
1 parent 4dde2af commit d639820
Showing 1 changed file with 14 additions and 37 deletions.
Loading

0 comments on commit d639820

Please sign in to comment.