mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +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:
parent
4c12420162
commit
241f06c9ff
4 changed files with 7 additions and 4 deletions
|
@ -829,7 +829,10 @@ final class AphrontRequest extends Phobject {
|
||||||
}
|
}
|
||||||
|
|
||||||
$uri->setPath($this->getPath());
|
$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();
|
$input = PhabricatorStartup::getRawInput();
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@ abstract class AphrontResponse extends Phobject {
|
||||||
$uri = id(new PhutilURI($uri))
|
$uri = id(new PhutilURI($uri))
|
||||||
->setPath(null)
|
->setPath(null)
|
||||||
->setFragment(null)
|
->setFragment(null)
|
||||||
->setQueryParams(array());
|
->removeAllQueryParams();
|
||||||
|
|
||||||
$uri = (string)$uri;
|
$uri = (string)$uri;
|
||||||
if (preg_match('/[ ;\']/', $uri)) {
|
if (preg_match('/[ ;\']/', $uri)) {
|
||||||
|
|
|
@ -447,7 +447,7 @@ abstract class PhabricatorAuthProvider extends Phobject {
|
||||||
$uri = $attributes['uri'];
|
$uri = $attributes['uri'];
|
||||||
$uri = new PhutilURI($uri);
|
$uri = new PhutilURI($uri);
|
||||||
$params = $uri->getQueryParamsAsPairList();
|
$params = $uri->getQueryParamsAsPairList();
|
||||||
$uri->setQueryParams(array());
|
$uri->removeAllQueryParams();
|
||||||
|
|
||||||
$content = array($button);
|
$content = array($button);
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ final class PhabricatorFileDataController extends PhabricatorFileController {
|
||||||
$request_uri = id(clone $request->getAbsoluteRequestURI())
|
$request_uri = id(clone $request->getAbsoluteRequestURI())
|
||||||
->setPath(null)
|
->setPath(null)
|
||||||
->setFragment(null)
|
->setFragment(null)
|
||||||
->setQueryParams(array());
|
->removeAllQueryParams();
|
||||||
|
|
||||||
$response->addContentSecurityPolicyURI(
|
$response->addContentSecurityPolicyURI(
|
||||||
'object-src',
|
'object-src',
|
||||||
|
|
Loading…
Reference in a new issue