Page MenuHomePhabricator

Make formatOrderClause() safer
ClosedPublic

Authored by epriestley on Apr 11 2015, 4:08 PM.
Tags
None
Referenced Files
F13241225: D12351.id.diff
Wed, May 22, 7:29 PM
F13240762: D12351.id29752.diff
Wed, May 22, 4:22 PM
F13238227: D12351.id29671.diff
Tue, May 21, 6:06 PM
F13236165: D12351.id29752.diff
Tue, May 21, 8:32 AM
F13217641: D12351.diff
Sat, May 18, 6:43 AM
F13205342: D12351.diff
Wed, May 15, 1:50 AM
F13200816: D12351.id29671.diff
Tue, May 14, 3:53 AM
F13186053: D12351.diff
Sat, May 11, 3:23 AM
Subscribers

Details

Summary

Ref T7803. Instead of trusting subqueries to provide safe values, escape them explicitly.

(We'll probably have a few cases somewhere where this doesn't work, but can make them the exception rather than the rule.)

Test Plan

Issued all "order" queries in Diffusion.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Make formatOrderClause() safer.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Apr 13 2015, 5:00 PM
This revision was automatically updated to reflect the committed changes.