Переглянути джерело

use new obEnd function instead of ob_end_clean

tags/v5.0.0alpha1
Robin Appelman 11 роки тому
джерело
коміт
bcb27c81d4

+ 1
- 1
apps/files/appinfo/remote.php Переглянути файл

@@ -27,7 +27,7 @@ $RUNTIME_APPTYPES=array('filesystem', 'authentication', 'logging');

OC_App::loadApps($RUNTIME_APPTYPES);

ob_end_clean();
OC_Util::obEnd();

// Backends
$authBackend = new OC_Connector_Sabre_Auth();

+ 1
- 1
apps/files/download.php Переглянути файл

@@ -44,5 +44,5 @@ header('Content-Disposition: attachment; filename="'.basename($filename).'"');
OCP\Response::disableCaching();
header('Content-Length: '.OC_Filesystem::filesize($filename));

@ob_end_clean();
OC_Util::obEnd();
OC_Filesystem::readfile( $filename );

+ 1
- 1
lib/eventsource.php Переглянути файл

@@ -32,7 +32,7 @@ class OC_EventSource{
private $fallBackId=0;

public function __construct() {
@ob_end_clean();
OC_Util::obEnd();
header('Cache-Control: no-cache');
$this->fallback=isset($_GET['fallback']) and $_GET['fallback']=='true';
if($this->fallback) {

+ 1
- 1
lib/files.php Переглянути файл

@@ -195,7 +195,7 @@ class OC_Files {
$zip=false;
$filename=$dir.'/'.$files;
}
@ob_end_clean();
OC_Util::obEnd();
if($zip or OC_Filesystem::is_readable($filename)) {
header('Content-Disposition: attachment; filename="'.basename($filename).'"');
header('Content-Transfer-Encoding: binary');

+ 1
- 1
lib/filesystemview.php Переглянути файл

@@ -195,7 +195,7 @@ class OC_FilesystemView {
return $this->basicOperation('filesize', $path);
}
public function readfile($path) {
@ob_end_clean();
OC_Util::obEnd();
$handle=$this->fopen($path, 'rb');
if ($handle) {
$chunkSize = 8192;// 8 MB chunks

Завантаження…
Відмінити
Зберегти