mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-09 16:32:39 +01:00
Fix dynamic string usage as safe input
Summary: I somehow missed it. Test Plan: Sent this diff by different copy of Arcanist. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4800
This commit is contained in:
parent
a9e316bf9c
commit
95b2c4587d
1 changed files with 11 additions and 6 deletions
|
@ -555,12 +555,17 @@ function reenter_if_this_is_arcanist_or_libphutil(
|
|||
$libphutil_path = dirname(phutil_get_library_root('phutil'));
|
||||
}
|
||||
|
||||
$err = phutil_passthru(
|
||||
phutil_is_windows()
|
||||
? 'set ARC_PHUTIL_PATH=%s & %Ls'
|
||||
: 'ARC_PHUTIL_PATH=%s %Ls',
|
||||
$libphutil_path,
|
||||
$original_argv);
|
||||
if (phutil_is_windows()) {
|
||||
$err = phutil_passthru(
|
||||
'set ARC_PHUTIL_PATH=%s & %Ls',
|
||||
$libphutil_path,
|
||||
$original_argv);
|
||||
} else {
|
||||
$err = phutil_passthru(
|
||||
'ARC_PHUTIL_PATH=%s %Ls',
|
||||
$libphutil_path,
|
||||
$original_argv);
|
||||
}
|
||||
|
||||
exit($err);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue