We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ed4ed commit c12ae7bCopy full SHA for c12ae7b
src/Command.php
@@ -147,14 +147,14 @@ public function setCommand($command)
147
$command = escapeshellcmd($command);
148
}
149
if ($this->getIsWindows()) {
150
- $position = null;
151
-
152
// Make sure to switch to correct drive like "E:" first if we have a full path in command
153
if (isset($command[1]) && $command[1]===':') {
154
$position = 1;
155
// Could be a quoted absolute path because of spaces. i.e. "C:\Program Files (x86)\file.exe"
156
} elseif (isset($command[2]) && $command[2]===':') {
157
$position = 2;
+ } else {
+ $position = false;
158
159
160
// Absolute path. If it's a relative path, let it slide.
0 commit comments