Page MenuHomePhabricator

Allow upload of arbitrary text files
ClosedPublic

Authored by epriestley on Jul 28 2015, 2:45 PM.
Tags
None
Referenced Files
F19021126: D13744.id.diff
Nov 23 2025, 6:52 PM
F18780700: D13744.id.diff
Oct 12 2025, 6:55 PM
F18779507: D13744.diff
Oct 11 2025, 2:14 PM
F18757161: D13744.diff
Oct 5 2025, 3:47 PM
F18662821: D13744.id33199.diff
Sep 23 2025, 9:40 PM
F18619649: D13744.diff
Sep 15 2025, 3:01 AM
F18619648: D13744.diff
Sep 15 2025, 3:01 AM
F18498821: D13744.diff
Sep 4 2025, 7:05 PM
Subscribers

Details

Summary

Fixes T8984. Because of how drag-and-drop upload works, the text file with content code is interpreted as a forbidden variable. Disable this check for the drop upload controller.

(The risk here is a general one where the controller redirects and bundles paramters; this controller does not do that, so it's safe to make this change.)

Test Plan

Uploaded a text file containing only the string "code" (no quotes) by using drag-and-drop.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Allow upload of arbitrary text files.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jul 28 2015, 3:03 PM
This revision was automatically updated to reflect the committed changes.