better fix for dav headers already sent issue

This commit is contained in:
zotlabs 2017-06-26 01:36:33 -07:00
parent 7f982a0778
commit 5dc638c5b3
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,8 @@ class Cloud extends \Zotlabs\Web\Controller {
$server->exec();
// ob_end_flush();
if($browser->build_page)
construct_page();
killme();
}

View File

@ -17,6 +17,7 @@ use Sabre\DAV;
*/
class Browser extends DAV\Browser\Plugin {
public $build_page = false;
/**
* @see set_writeable()
* @see \\Sabre\\DAV\\Auth\\Backend\\BackendInterface
@ -257,7 +258,7 @@ class Browser extends DAV\Browser\Plugin {
}
}
$this->server->httpResponse->setHeader('Content-Security-Policy', "script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'");
construct_page();
$this->build_page = true;
}
/**