Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilURI.php
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | if (strlen($protocol) || strlen($auth) || strlen($domain)) { | ||||
} | } | ||||
if (strlen($port)) { | if (strlen($port)) { | ||||
$prefix .= ':'.$port; | $prefix .= ':'.$port; | ||||
} | } | ||||
} | } | ||||
if ($this->query) { | if ($this->query) { | ||||
$query = '?'.http_build_query($this->query, '', '&'); | $query = '?'.phutil_build_http_querystring($this->query, '', '&'); | ||||
amckinley: Dangling arguments? | |||||
epriestleyAuthorUnsubmitted Done Inline ActionsAh, thanks! epriestley: Ah, thanks! | |||||
} else { | } else { | ||||
$query = null; | $query = null; | ||||
} | } | ||||
if (strlen($this->getFragment())) { | if (strlen($this->getFragment())) { | ||||
$fragment = '#'.$this->getFragment(); | $fragment = '#'.$this->getFragment(); | ||||
} else { | } else { | ||||
$fragment = null; | $fragment = null; | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |
Dangling arguments?