Page MenuHomePhabricator

Use "QUERY_STRING", not "REQUEST_URI", to parse raw request parameters
ClosedPublic

Authored by epriestley on Feb 28 2019, 6:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 5:48 PM
Unknown Object (File)
Dec 5 2024, 6:04 AM
Unknown Object (File)
Dec 3 2024, 11:31 AM
Unknown Object (File)
Nov 26 2024, 10:17 PM
Unknown Object (File)
Nov 23 2024, 8:25 AM
Unknown Object (File)
Nov 14 2024, 8:36 AM
Unknown Object (File)
Oct 23 2024, 11:46 PM
Unknown Object (File)
Oct 21 2024, 2:39 PM
Subscribers
None

Details

Summary

Fixes T13260. "QUERY_STRING" and "REQUEST_URI" are similar for our purposes here, but our nginx documentation tells you to pass "QUERY_STRING" and doesn't tell you to pass "REQUEST_URI". We also use "QUERY_STRING" in a couple of other places already, and already have a setup check for it.

Use "QUERY_STRING" instead of "REQUEST_URI".

Test Plan

Visited /oauth/google/?a=b, got redirected with parameters preserved.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable