Page MenuHomePhabricator

Allow upload of arbitrary text files
ClosedPublic

Authored by epriestley on Jul 28 2015, 2:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 25, 6:18 AM
Unknown Object (File)
Apr 27 2025, 12:07 PM
Unknown Object (File)
Apr 23 2025, 9:47 PM
Unknown Object (File)
Apr 20 2025, 8:41 AM
Unknown Object (File)
Apr 20 2025, 8:41 AM
Unknown Object (File)
Apr 20 2025, 8:41 AM
Unknown Object (File)
Apr 18 2025, 2:34 AM
Unknown Object (File)
Apr 16 2025, 8:31 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.