mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 11:19:25 -05:00
Fix arguments with spaces when calling docker
This commit is contained in:
@@ -18,7 +18,7 @@ array_shift($argv);
|
||||
$colorize = ($argv[0] == 'logs');
|
||||
|
||||
if ($colorize) echo "<p style='text-align:center'><span class='error label'>Error</span><span class='warn label'>Warning</span><span class='system label'>System</span><span class='array label'>Array</span><span class='login label'>Login</span></p>\n";
|
||||
$handle = popen('/usr/bin/docker '.implode(' ',$argv),'r');
|
||||
$handle = popen('/usr/bin/docker "'.implode('" "',$argv).'"','r');
|
||||
while (!feof($handle)) {
|
||||
$line = fgets($handle);
|
||||
if ($colorize) {
|
||||
|
||||
Reference in New Issue
Block a user