1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-10-19 07:08:51 +02:00
phorge-phorge/resources/sql/patches/105.mimetype.sql

5 lines
304 B
MySQL
Raw Normal View History

/* 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);