mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Trim "\n" from mimeType field in phabricator_file.file
Summary: See patch comment, which explains the situation. Test Plan: Ran upgrade, verified mimeType field is \n-free in database. Reviewers: davidreuss, btrahan Reviewed By: davidreuss CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1624
This commit is contained in:
parent
ff4c67d207
commit
d7bb1f183c
1 changed files with 4 additions and 0 deletions
4
resources/sql/patches/105.mimetype.sql
Normal file
4
resources/sql/patches/105.mimetype.sql
Normal file
|
@ -0,0 +1,4 @@
|
|||
/* Prior to D1615, we used the raw output of `file` to determine mime types,
|
||||
without stripping carriage returns. This creates Content-Type headers
|
||||
which are blocked by response-splitting protections introduced in D1564. */
|
||||
UPDATE phabricator_file.file SET mimeType = TRIM(BOTH "\n" FROM mimeType);
|
Loading…
Reference in a new issue