File tree 1 file changed +5
-13
lines changed
src/Symfony/Component/Process
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -102,20 +102,12 @@ public function getProcess()
102
102
103
103
$ options = $ this ->options ;
104
104
105
- if ( defined ( ' PHP_WINDOWS_VERSION_MAJOR ' )) {
106
- $ options [ ' bypass_shell ' ] = true ;
105
+ $ arguments = $ this -> arguments ;
106
+ $ command = array_shift ( $ arguments ) ;
107
107
108
- $ arguments = $ this ->arguments ;
109
- $ command = array_shift ($ arguments );
110
-
111
- $ script = '" ' .$ command .'" ' ;
112
- if ($ arguments ) {
113
- $ script .= ' ' .implode (' ' , array_map ('escapeshellarg ' , $ arguments ));<
8949
/div>
114
- }
115
-
116
- $ script = 'cmd /V:ON /E:ON /C " ' .$ script .'" ' ;
117
- } else {
118
- $ script = implode (' ' , array_map ('escapeshellarg ' , $ this ->arguments ));
108
+ $ script = escapeshellcmd ($ command );
109
+ if ($ arguments ) {
110
+ $ script .= ' ' .implode (' ' , array_map ('escapeshellarg ' , $ arguments ));
119
111
}
120
112
121
113
$ env = $ this ->inheritEnv && $ _ENV ? $ this ->env + $ _ENV : $ this ->env ;
You can’t perform that action at this time.
0 commit comments