Skip to content
Snippets Groups Projects
Commit 856b3fe9 authored by ale's avatar ale
Browse files

Merge branch 'blacklist_pdf' into 'master'

Blacklist pdf

See merge request !2
parents 744b84dc 3be0b1b7
No related branches found
No related tags found
1 merge request!2Blacklist pdf
Pipeline #60394 passed
......@@ -26,11 +26,14 @@ 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 ($mimetype === "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