Changeset View
Changeset View
Standalone View
Standalone View
src/ref/commit/ArcanistGitCommitSymbolCommitHardpointQuery.php
Context not available. | |||||
$pairs = array_combine($symbol_set, $lines); | $pairs = array_combine($symbol_set, $lines); | ||||
foreach ($pairs as $symbol => $line) { | foreach ($pairs as $symbol => $line) { | ||||
$parts = explode(' ', $line, 3); | $parts = @explode(' ', $line, 3); | ||||
if (count($parts) < 2) { | if (count($parts) < 2) { | ||||
throw new Exception( | throw new Exception( | ||||
Context not available. | |||||
} | } | ||||
private function validateSymbol($symbol) { | private function validateSymbol($symbol) { | ||||
if (strpos($symbol, "\n") !== false) { | if (@strpos($symbol, "\n") !== false) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Commit symbol "%s" contains a newline. This is not a valid '. | 'Commit symbol "%s" contains a newline. This is not a valid '. | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0