Skip to content

Commit

Permalink
Fix PHP deprecation warnings (#9616)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Sep 7, 2024
1 parent c5a8611 commit 4ca1984
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- Fix attachment name decoding when 'charset' parameter exists in the headers (#9376)
- Fix deprecated (in PHP 8.4) use of session_set_save_handler() (#9060)
- Fix potential HTTP protocol version mismatch (#8982)
- Fix PHP deprecation warnings (#9616)

## Release 1.6.9

Expand Down
3 changes: 2 additions & 1 deletion program/lib/Roundcube/rcube.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,8 @@ public function encrypt($clear, $key = 'des_key', $base64 = true)
*/
public function decrypt($cipher, $key = 'des_key', $base64 = true)
{
if (strlen($cipher) == 0) {
// @phpstan-ignore-next-line
if (!is_string($cipher) || !strlen($cipher)) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ protected function authenticate($user, $pass, $type = 'PLAIN')
$gssapicontext->acquireCredentials($ccache);

$token = '';
$success = $gssapicontext->initSecContext($this->prefs['gssapi_context'], null, null, null, $token);
$success = $gssapicontext->initSecContext($this->prefs['gssapi_context'], '', 0, 0, $token);
$token = base64_encode($token);
} catch (Exception $e) {
trigger_error($e->getMessage(), \E_USER_WARNING);
Expand Down

0 comments on commit 4ca1984

Please sign in to comment.