Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorPathSetupCheck.php
Context not available. | |||||
// Users are remarkably industrious at misconfiguring software. Try to | // Users are remarkably industrious at misconfiguring software. Try to | ||||
// catch mistaken configuration of PATH. | // catch mistaken configuration of PATH. | ||||
$path_parts = explode(PATH_SEPARATOR, $path); | $path_parts = @explode(PATH_SEPARATOR, $path); | ||||
$bad_paths = array(); | $bad_paths = array(); | ||||
foreach ($path_parts as $path_part) { | foreach ($path_parts as $path_part) { | ||||
if (!strlen($path_part)) { | if (!@strlen($path_part)) { | ||||
continue; | continue; | ||||
} | } | ||||
Context not available. | |||||
if ($bad_paths) { | if ($bad_paths) { | ||||
foreach ($bad_paths as $path_part => $message) { | foreach ($bad_paths as $path_part => $message) { | ||||
$digest = substr(PhabricatorHash::weakDigest($path_part), 0, 8); | $digest = @substr(PhabricatorHash::weakDigest($path_part), 0, 8); | ||||
$this | $this | ||||
->newIssue('config.PATH.'.$digest) | ->newIssue('config.PATH.'.$digest) | ||||
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