1
0
Fork 0
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:
epriestley 2015-03-09 14:10:34 -07:00
parent f1f2c5d01d
commit f66edccf62

View file

@ -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'),