1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 01:12:41 +01:00
phorge-phorge/src/infrastructure
epriestley fce6a7089c Fix production file links for some alt-domain configurations
Summary:
We sometimes call PhabricatorEnv::getProductionURI($file->getBestURI()) or
similar, but this may currently cause us to construct a URI like this:

  http://domain.com/http://cdn-domain.com/file/data/xxx/yyy/name.jpg

Instead, if the provided URI has a domain already, leave it unmodified.

Test Plan: Attached a file to a task; got an email with a valid URI instead of
an invalid URI.

Reviewers: btrahan

Reviewed By: btrahan

CC: Makinde, aran, epriestley

Differential Revision: https://secure.phabricator.com/D1622
2012-02-15 17:06:36 -08:00
..
__tests__ Add test to check all symbols can be loaded 2011-10-20 16:43:13 -07:00
celerity Encode "<" and ">" in JSON/Ajax responses to prevent content-sniffing attacks 2012-02-14 14:51:51 -08:00
daemon D1535 2012-02-10 09:47:57 -08:00
diff/engine Fix Diffusion rendering of SVN files which did not change 2011-07-20 11:54:33 -07:00
env Fix production file links for some alt-domain configurations 2012-02-15 17:06:36 -08:00
events Add a "maniphest.update" Conduit method 2012-01-06 11:52:00 -08:00
javelin Avoid sending CSRF token in GET and external forms 2012-02-03 10:58:51 -08:00
lint Add a custom lint name hook to Phabricator 2011-08-31 13:49:30 -07:00
markup/remarkup/markuprule Allow full anchors in remarkup object names 2012-02-03 15:50:19 -08:00
setup Add a safeguard against multiple patches with the same version 2012-02-14 16:24:02 -08:00
testing/testcase Merge __init_env__.php into __init_script__.php 2011-10-02 11:48:09 -07:00
util/hash Move most remaining sha1() calls to HMAC 2011-12-19 08:56:53 -08:00