1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00

Unguard the DarkConsole XHProf profile write.

This commit is contained in:
epriestley 2011-08-17 12:21:35 -07:00
parent b42b78f65c
commit 0e6bc7c939

View file

@ -66,6 +66,10 @@ final class DarkConsoleXHProfPluginAPI {
$data = serialize($data);
$file_class = 'PhabricatorFile';
PhutilSymbolLoader::loadClass($file_class);
// Since these happen on GET we can't do guarded writes.
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
$file = call_user_func(
array($file_class, 'newFromFileData'),
$data,