aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index da3d3cd1c6e..d5214823de9 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -431,6 +431,16 @@ class OC_Helper {
}
/**
+ * Get a secure mimetype that won't expose potential XSS.
+ *
+ * @param string $mimeType
+ * @return string
+ */
+ static function getSecureMimeType($mimeType) {
+ return self::getMimetypeDetector()->getSecureMimeType($mimeType);
+ }
+
+ /**
* get the mimetype form a data string
*
* @param string $data