mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
70056a9072
Summary: See <https://discourse.phabricator-community.org/t/embedding-external-images-url-show-error-for-long-urls/1339>. When we download a file from a URI, we provide a default name based on the URI. However, if the URI is something like `http://example.com/very-very-very-....-long.jpg` with more than 255 characters, we may suggest a name which won't fit into the `name` column of `PhabricatorFile`. Instead, suggest a default name no longer than 64 bytes. Test Plan: - Used the `{image ...}` example from the Discourse report locally; got an image with a truncated name. - Used a normal `{image ...}`, got an image file with a normal name. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D19353 |
||
---|---|---|
.. | ||
__tests__ | ||
aphront | ||
applications | ||
docs | ||
extensions | ||
infrastructure | ||
view | ||
__phutil_library_init__.php | ||
__phutil_library_map__.php |