Commit a824c9eb authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Display cleaned content of XML file. Bug 1404117"

parents e5a0f676 3cf59153
......@@ -55,7 +55,11 @@ function serve_file($path, $filename, $mimetype, $options=array()) {
$lastmodified = filemtime($path);
$filesize = filesize($path);
if ($mimetype == 'text/html' || $mimetype == 'text/xml' || $mimetype == 'application/xhtml+xml' || $mimetype == 'image/svg+xml') {
if ($mimetype == 'text/html'
|| $mimetype == 'text/xml'
|| $mimetype == 'application/xml'
|| $mimetype == 'application/xhtml+xml'
|| $mimetype == 'image/svg+xml') {
if (isset($options['downloadurl']) && $filesize < 1024 * 1024) {
display_cleaned_html(file_get_contents($path), $filename, $options);
exit;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment