Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895555
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
526 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/resources/sql/patches/105.mimetype.sql b/resources/sql/patches/105.mimetype.sql
new file mode 100644
index 0000000000..99f53a5580
--- /dev/null
+++ b/resources/sql/patches/105.mimetype.sql
@@ -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);
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Jan 19 2025, 21:39 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129030
Default Alt Text
(526 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment