Page MenuHomePhabricator

Make formatOrderClause() safer
ClosedPublic

Authored by epriestley on Apr 11 2015, 4:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 12:19 AM
Unknown Object (File)
Mon, Jan 20, 11:11 AM
Unknown Object (File)
Fri, Jan 17, 5:31 PM
Unknown Object (File)
Wed, Jan 15, 6:06 PM
Unknown Object (File)
Mon, Jan 13, 10:40 PM
Unknown Object (File)
Wed, Jan 8, 10:25 AM
Unknown Object (File)
Dec 22 2024, 4:41 PM
Unknown Object (File)
Dec 15 2024, 10:51 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.