Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilQueryStringParser.php
| Show All 18 Lines | |||||
| * | * | ||||
| * ...with the `.` replaced with an underscore, `_`. Other characters converted | * ...with the `.` replaced with an underscore, `_`. Other characters converted | ||||
| * in this way include space and unmatched opening brackets. | * in this way include space and unmatched opening brackets. | ||||
| * | * | ||||
| * Broadly, this is part of the terrible legacy of `register_globals`. Since | * Broadly, this is part of the terrible legacy of `register_globals`. Since | ||||
| * we'd like to be able to parse all valid query strings without destroying any | * we'd like to be able to parse all valid query strings without destroying any | ||||
| * data, this class implements a less-encumbered parser. | * data, this class implements a less-encumbered parser. | ||||
| */ | */ | ||||
| final class PhutilQueryStringParser { | final class PhutilQueryStringParser extends Phobject { | ||||
| /** | /** | ||||
| * Parses a query string into a dictionary, applying PHP rules for handling | * Parses a query string into a dictionary, applying PHP rules for handling | ||||
| * array nomenclature (like `a[]=1`) in parameter names. | * array nomenclature (like `a[]=1`) in parameter names. | ||||
| * | * | ||||
| * For a more basic parse, see @{method:parseQueryStringToPairList}. | * For a more basic parse, see @{method:parseQueryStringToPairList}. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines | |||||