]> source.dussan.org Git - nextcloud-server.git/commit
Verify existence of $_GET key
authorLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 01:31:59 +0000 (02:31 +0100)
committerLukas Reschke <lukas@owncloud.com>
Fri, 9 Jan 2015 01:31:59 +0000 (02:31 +0100)
commit199276bcbb820df518298d2d98c9b00711c1be38
treed378d09d0387159f6281c183d69c8a9bba00b9de
parent6a5f12beca175a0b9a951fa844eacfd21a8df3de
Verify existence of $_GET key

Otherwise when the file without any specified mimetype was accessed the error log was flooded with entries such as "Undefined index: mime", there can be multiple issues found about this in the forum and our bugtracker.

To test this access `/index.php/apps/files/ajax/mimeicon.php` with and without `$_GET['mime']`.

Fixes itself.
apps/files/ajax/mimeicon.php