Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 746 Lines • ▼ Show 20 Lines | public function generateURI(array $params) { | ||||
$raw_branch = $branch; | $raw_branch = $branch; | ||||
if (phutil_nonempty_string($branch)) { | if (phutil_nonempty_string($branch)) { | ||||
$branch = phutil_escape_uri_path_component($branch); | $branch = phutil_escape_uri_path_component($branch); | ||||
$path = "{$branch}/{$path}"; | $path = "{$branch}/{$path}"; | ||||
} | } | ||||
$raw_commit = $commit; | $raw_commit = $commit; | ||||
if (phutil_nonempty_string($commit)) { | if (phutil_nonempty_scalar($commit)) { | ||||
$commit = str_replace('$', '$$', $commit); | $commit = str_replace('$', '$$', $commit); | ||||
$commit = ';'.phutil_escape_uri($commit); | $commit = ';'.phutil_escape_uri($commit); | ||||
} | } | ||||
$line = phutil_string_cast($line); | $line = phutil_string_cast($line); | ||||
if (phutil_nonempty_string($line)) { | if (phutil_nonempty_string($line)) { | ||||
$line = '$'.phutil_escape_uri($line); | $line = '$'.phutil_escape_uri($line); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,121 Lines • Show Last 20 Lines |