mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
Respect outbound HTTP setting in macro generation
Summary: We respect this when adding inputs to the form, but not when guarding the actual fetch. Test Plan: Reading Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D12030
This commit is contained in:
parent
f1f2c5d01d
commit
f66edccf62
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ final class PhabricatorMacroEditController extends PhabricatorMacroController {
|
|||
'isExplicitUpload' => true,
|
||||
'canCDN' => true,
|
||||
));
|
||||
} else if ($request->getStr('url')) {
|
||||
} else if ($request->getStr('url') && $can_fetch) {
|
||||
try {
|
||||
$file = PhabricatorFile::newFromFileDownload(
|
||||
$request->getStr('url'),
|
||||
|
|
Loading…
Reference in a new issue