summaryrefslogtreecommitdiffstats
path: root/application/libraries/Pygments.php
diff options
context:
space:
mode:
authorhashworks <mail@hashworks.net>2024-02-24 15:25:04 +0100
committerhashworks <mail@hashworks.net>2024-02-24 15:25:14 +0100
commit4c6c4b8c19797333b4d93a266afd7f243694d875 (patch)
treef0b81395a5195cf3f3a215ab1d487b9c2bdc6466 /application/libraries/Pygments.php
parentb253c9a893077711e503c69970b24ae94e7451ac (diff)
Use systemd lexer for systemd .service file mimetypes
Uploading systemd foo.service files results in the application/x-wine-extension-ini mimetype, which triggers a download on various browsers. This fixes that and displays them using the systemd lexer instead.
Diffstat (limited to 'application/libraries/Pygments.php')
-rw-r--r--application/libraries/Pygments.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/libraries/Pygments.php b/application/libraries/Pygments.php
index 174642141..e96b84258 100644
--- a/application/libraries/Pygments.php
+++ b/application/libraries/Pygments.php
@@ -112,6 +112,7 @@ class Pygments {
'application/x-shellscript' => 'bash',
'application/xslt+xml' => "xml",
'application/x-x509-ca-cert' => 'text',
+ 'application/x-wine-extension-ini' => 'systemd',
'message/rfc822' => 'text',
'text/css' => 'css',
'text/html' => 'xml',