1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00

Fix a bug found by vrana in audit

Summary: seen https://secure.phabricator.com/rPf5e71eb88920d4afb5590b0682eda66f09b2c024

Test Plan: i believe in vrana.

Reviewers: vrana

Reviewed By: vrana

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D3588
This commit is contained in:
Bob Trahan 2012-10-01 15:15:07 -07:00
parent 5b7616ad6e
commit 3211238a95

View file

@ -83,6 +83,6 @@ PhutilTranslator::getInstance()
$paths = PhabricatorEnv::getEnvConfig('environment.append-paths'); $paths = PhabricatorEnv::getEnvConfig('environment.append-paths');
if (!empty($paths)) { if (!empty($paths)) {
$current_env_path = getenv('PATH'); $current_env_path = getenv('PATH');
$new_env_paths = implode(':', $paths); $new_env_paths = implode(PATH_SEPARATOR, $paths);
putenv('PATH='.$current_env_path.':'.$new_env_paths); putenv('PATH='.$current_env_path.PATH_SEPARATOR.$new_env_paths);
} }