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:
parent
d3558eb25f
commit
b291ad9807
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue