Skip to content

Commit

Permalink
Merge branch 'master' into fqcn
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Nov 4, 2024
2 parents ebe0838 + 749eb38 commit e13e395
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion program/include/rcmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ protected function startup()
}

// load oauth manager
$this->oauth = \rcmail_oauth::get_instance();
if (\PHP_SAPI != 'cli') {
$this->oauth = \rcmail_oauth::get_instance();
}

// run init method on all the plugins
$this->plugins->init($this, $this->task);
Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_csv2vcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ protected function parse_line($line)
return [];
}

$fields = str_getcsv($line);
$fields = str_getcsv($line, ',', '"', '\\');

return $fields;
}
Expand Down
2 changes: 2 additions & 0 deletions tests/Actions/Login/OauthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class OauthTest extends ActionTestCase
*/
public function test_run_login_redirect()
{
\rcmail::get_instance()->oauth = \rcmail_oauth::get_instance();

$action = new \rcmail_action_login_oauth();
$output = $this->initOutput(\rcmail_action::MODE_HTTP, 'login', '');

Expand Down
2 changes: 1 addition & 1 deletion tests/Framework/RcubeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function test_exec()
return;
}

$this->assertSame('', \rcube::exec('which unknown-command-123'));
$this->assertSame('', \rcube::exec('which unknown-command-123 2> /dev/null'));
$this->assertSame("2038\n", \rcube::exec('date --date={date} +%Y', ['date' => '@2147483647']));
// TODO: More cases
}
Expand Down

0 comments on commit e13e395

Please sign in to comment.