Skip to content
Snippets Groups Projects
Commit aa7f4f2e authored by putro's avatar putro
Browse files

do not remove metadata from pdf - and commit...

parent 744b84dc
No related branches found
No related tags found
1 merge request!2Blacklist pdf
......@@ -26,10 +26,12 @@ class WP_Mat {
// Check if the mime type is one of those we want to clean up.
// Use a blacklist, currently empty. Send everything by default
// except video.
// except video, and pdf.
function is_supported_mime_type($mimetype) {
if (substr($mimetype, 0, 6) === "video/") {
return false;
if (substr($mimetype, 0, 15) === "application/pdf") {
return false;
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment