nextcloud/lib/composer/composer
Morris Jobke 9ca848c317
Opening the trashbin causes errors in log for files without preview
* put a file without a generated preview in the trashbin
  (e.g. a *.docx file)
* open the trashbin
* following errors will show up in the nextcloud.log:
	- filesize(): stat failed for ...
	- fopen(...): failed to open stream: No such file or directory at ...
	- fread() expects parameter 1 to be resource, boolean given at ...
	- fclose() expects parameter 1 to be resource, boolean given at ...
	- imagecreatefromstring(): Empty string or invalid image at ...

This is because the preview code tries to load an SVG image, which
is obviously only text.

The fix simply handles this before the loading happens and the web UI
keeps showing the default mimetype icon.
2016-09-13 20:18:09 +02:00
..
ClassLoader.php Recreate the composer autoloader files 2016-08-15 13:38:22 +02:00
LICENSE Move OC\Core and OC\Settings to composer autoloader 2016-04-05 16:47:38 +02:00
autoload_classmap.php Opening the trashbin causes errors in log for files without preview 2016-09-13 20:18:09 +02:00
autoload_namespaces.php Recreate the composer autoloader files 2016-08-15 13:38:22 +02:00
autoload_psr4.php Recreate the composer autoloader files 2016-08-15 13:38:22 +02:00
autoload_real.php Recreate the composer autoloader files 2016-08-15 13:38:22 +02:00
autoload_static.php Opening the trashbin causes errors in log for files without preview 2016-09-13 20:18:09 +02:00
installed.json Add composers default autoloader to core 2016-03-09 16:53:27 +01:00