1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 08:12:40 +01:00

Clean up final setQueryParams() callsites

Summary: Ref T13250. See D20149.

Test Plan: All trivial?

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13250

Differential Revision: https://secure.phabricator.com/D20153
This commit is contained in:
epriestley 2019-02-12 13:18:32 -08:00
parent 4c12420162
commit 241f06c9ff
4 changed files with 7 additions and 4 deletions

View file

@ -829,7 +829,10 @@ final class AphrontRequest extends Phobject {
}
$uri->setPath($this->getPath());
$uri->setQueryParams(self::flattenData($_GET));
$uri->removeAllQueryParams();
foreach (self::flattenData($_GET) as $query_key => $query_value) {
$uri->appendQueryParam($query_key, $query_value);
}
$input = PhabricatorStartup::getRawInput();

View file

@ -218,7 +218,7 @@ abstract class AphrontResponse extends Phobject {
$uri = id(new PhutilURI($uri))
->setPath(null)
->setFragment(null)
->setQueryParams(array());
->removeAllQueryParams();
$uri = (string)$uri;
if (preg_match('/[ ;\']/', $uri)) {

View file

@ -447,7 +447,7 @@ abstract class PhabricatorAuthProvider extends Phobject {
$uri = $attributes['uri'];
$uri = new PhutilURI($uri);
$params = $uri->getQueryParamsAsPairList();
$uri->setQueryParams(array());
$uri->removeAllQueryParams();
$content = array($button);

View file

@ -135,7 +135,7 @@ final class PhabricatorFileDataController extends PhabricatorFileController {
$request_uri = id(clone $request->getAbsoluteRequestURI())
->setPath(null)
->setFragment(null)
->setQueryParams(array());
->removeAllQueryParams();
$response->addContentSecurityPolicyURI(
'object-src',