Page MenuHomePhabricator

Allow upload of arbitrary text files
ClosedPublic

Authored by epriestley on Jul 28 2015, 2:45 PM.
Tags
None
Referenced Files
F15399459: D13744.id33203.diff
Mon, Mar 17, 4:39 AM
F15379896: D13744.diff
Fri, Mar 14, 12:03 AM
F15373234: D13744.diff
Wed, Mar 12, 3:04 PM
F15369613: D13744.id33199.diff
Wed, Mar 12, 7:30 AM
Unknown Object (File)
Mon, Mar 3, 6:55 PM
Unknown Object (File)
Feb 23 2025, 3:46 AM
Unknown Object (File)
Feb 11 2025, 9:46 PM
Unknown Object (File)
Feb 8 2025, 9:47 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.