mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01:00
Unguard the DarkConsole XHProf profile write.
This commit is contained in:
parent
b42b78f65c
commit
0e6bc7c939
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ final class DarkConsoleXHProfPluginAPI {
|
||||||
$data = serialize($data);
|
$data = serialize($data);
|
||||||
$file_class = 'PhabricatorFile';
|
$file_class = 'PhabricatorFile';
|
||||||
PhutilSymbolLoader::loadClass($file_class);
|
PhutilSymbolLoader::loadClass($file_class);
|
||||||
|
|
||||||
|
// Since these happen on GET we can't do guarded writes.
|
||||||
|
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
|
||||||
|
|
||||||
$file = call_user_func(
|
$file = call_user_func(
|
||||||
array($file_class, 'newFromFileData'),
|
array($file_class, 'newFromFileData'),
|
||||||
$data,
|
$data,
|
||||||
|
|
Loading…
Reference in a new issue