mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Fix "add more metadata" fatal in Pholio
Summary: Ref T13332. This fix isn't terribly satisfying, but resolves the issue: this behavior may attempt to build HTML blocks with metadata after Javascript footer rendering has started. Use `hsprintf()` to flatten the markup earlier. Test Plan: Put a `T123` reference in the description of a Pholio image, then loaded a mock. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13332 Differential Revision: https://secure.phabricator.com/D20647
This commit is contained in:
parent
2c435433e0
commit
099919366b
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ final class PholioMockImagesView extends AphrontView {
|
|||
'width' => $x,
|
||||
'height' => $y,
|
||||
'title' => $image->getName(),
|
||||
'descriptionMarkup' => $description,
|
||||
'descriptionMarkup' => hsprintf('%s', $description),
|
||||
'isObsolete' => (bool)$image->getIsObsolete(),
|
||||
'isImage' => $file->isViewableImage(),
|
||||
'isViewable' => $file->isViewableInBrowser(),
|
||||
|
|
Loading…
Reference in a new issue