diff -urN ../roundcubemail-1.6.6.orig/program/actions/mail/attachment_upload.php ./program/actions/mail/attachment_upload.php --- ../roundcubemail-1.6.6.orig/program/actions/mail/attachment_upload.php 2024-01-20 12:15:04.000000000 +0200 +++ ./program/actions/mail/attachment_upload.php 2024-02-03 13:59:08.886569000 +0200 @@ -65,7 +65,8 @@ if ( $host == $url['host'] - && $port == ($url['port'] ?? null) +// && $port == ($url['port'] ?? null) + && $port == (isset($url['port']) ? $url['port'] : null) && $rcmail->get_user_name() == rawurldecode($url['user']) ) { $message = new rcube_message($params['_uid'], $params['_mbox']); @@ -184,7 +185,7 @@ public static function get_attachment() { - return self::$COMPOSE['attachments'][self::$file_id]; + return isset(self::$COMPOSE['attachments'][self::$file_id]) ? self::$COMPOSE['attachments'][self::$file_id] : null; } public static function attachment_success($attachment, $uploadid)