diff --git a/core/js/mimetypelist.js b/core/js/mimetypelist.js index 760d7baab7245fad9e64822b340d68c77c1f4560..43f01273f55e8235cef38102a3d27ac18e0ddf4c 100644 --- a/core/js/mimetypelist.js +++ b/core/js/mimetypelist.js @@ -74,6 +74,7 @@ OC.MimeTypeList={ "text/csv": "x-office/spreadsheet", "text/html": "text/code", "text/x-c": "text/code", + "text/x-c++src": "text/code", "text/x-h": "text/code", "text/x-java-source": "text/code", "text/x-python": "text/code", diff --git a/resources/config/mimetypealiases.dist.json b/resources/config/mimetypealiases.dist.json index d0019c4f0a77a09e8f5b53fb2a08cdba5fb60055..ed471f228e20f1276810666e442f0f50bc5b5606 100644 --- a/resources/config/mimetypealiases.dist.json +++ b/resources/config/mimetypealiases.dist.json @@ -74,6 +74,7 @@ "text/csv": "x-office/spreadsheet", "text/html": "text/code", "text/x-c": "text/code", + "text/x-c++src": "text/code", "text/x-h": "text/code", "text/x-java-source": "text/code", "text/x-python": "text/code", diff --git a/resources/config/mimetypemapping.dist.json b/resources/config/mimetypemapping.dist.json index e7c088718172bdfd16d63e9d14065c814a9af415..e26ec7038b17dd1b9dffd61ad0e3c0e1ef3b1dd9 100644 --- a/resources/config/mimetypemapping.dist.json +++ b/resources/config/mimetypemapping.dist.json @@ -36,7 +36,7 @@ "csv": ["text/csv"], "cvbdl": ["application/x-cbr"], "c": ["text/x-c"], - "c++": ["text/x-c"], + "c++": ["text/x-c++src"], "dcr": ["image/x-dcraw"], "deb": ["application/x-deb"], "dng": ["image/x-dcraw"],