1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Unguard thumbnail generation from CSRF.

This commit is contained in:
epriestley 2011-08-17 14:39:00 -07:00
parent d3558eb25f
commit b291ad9807

View file

@ -49,6 +49,10 @@ class PhabricatorFileTransformController extends PhabricatorFileController {
return $this->buildDefaultTransformation($file);
}
// We're essentially just building a cache here and don't need CSRF
// protection.
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
switch ($this->transform) {
case 'thumb-160x120':
$xformed_file = $this->executeThumbTransform($file, 160, 120);