Skip to content

Commit cee2ecb

Browse files
committed
Added limit to explode to prevent losing a part of the argument when for example passing a url with query parameters
1 parent c3aa06d commit cee2ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/RunCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected function getOptions()
236236
continue;
237237
}
238238

239-
$option = explode('=', substr($argument, 2));
239+
$option = explode('=', substr($argument, 2), 2);
240240

241241
if (count($option) == 1) {
242242
$option[1] = true;

0 commit comments

Comments
 (0)