From: vrana Date: Sun, 3 Feb 2013 23:00:23 +0000 (-0800) Subject: Fix dynamic string usage as safe input X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=95b2c4587decb975abbd61bf012fe56752d28a8a;p=arcanist.git 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 --- diff --git a/scripts/arcanist.php b/scripts/arcanist.php index e4d429a0..d9e14cd6 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -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); }