Skip to content

Commit

Permalink
MDL-51165 mod_url: allow directory index url direct access
Browse files Browse the repository at this point in the history
  • Loading branch information
kiratskitizing committed Sep 19, 2021
1 parent 5ea3545 commit 7ccf18f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/url/locallib.php
Expand Up @@ -380,8 +380,9 @@ function url_get_final_display_type($url) {
}
}

static $download = array('application/zip', 'application/x-tar', 'application/g-zip', // binary formats
'application/pdf', 'text/html'); // these are known to cause trouble for external links, sorry
// Binaries and other formats that are known to cause trouble for external links.
static $download = ['application/zip', 'application/x-tar', 'application/g-zip',
'application/pdf', 'text/html', 'document/unknown'];
static $embed = array('image/gif', 'image/jpeg', 'image/png', 'image/svg+xml', // images
'application/x-shockwave-flash', 'video/x-flv', 'video/x-ms-wm', // video formats
'video/quicktime', 'video/mpeg', 'video/mp4',
Expand Down

0 comments on commit 7ccf18f

Please sign in to comment.