summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-09 10:39:22 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-09 10:39:22 +0100
commitb4606ec24f507ff6ad6f720d3c4f026221a163d7 (patch)
tree6025337b8470885725166f0cbafd5f576f5b7542 /apps/files
parentd4fc2f555b305ce215af3bfcc68a2ffea89f0a53 (diff)
parent199276bcbb820df518298d2d98c9b00711c1be38 (diff)
downloadnextcloud-server-b4606ec24f507ff6ad6f720d3c4f026221a163d7.tar.gz
nextcloud-server-b4606ec24f507ff6ad6f720d3c4f026221a163d7.zip
Merge pull request #13184 from owncloud/fix-key
Verify existence of $_GET key
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/mimeicon.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/ajax/mimeicon.php b/apps/files/ajax/mimeicon.php
index fdbcc441a78..c531f5a3e81 100644
--- a/apps/files/ajax/mimeicon.php
+++ b/apps/files/ajax/mimeicon.php
@@ -1,4 +1,6 @@
<?php
\OC::$server->getSession()->close();
-print OC_Helper::mimetypeIcon($_GET['mime']);
+$mime = isset($_GET['mime']) ? $_GET['mime'] : '';
+
+print OC_Helper::mimetypeIcon($mime);