comparison program/lib/Roundcube/rcube_message.php @ 22:303b85d5b561

More cleaning up php8 Warnings/deprecations
author Charlie Root
date Wed, 15 Oct 2025 14:06:27 -0400
parents b6a96bdd6b29
children e53add5ddac5
comparison
equal deleted inserted replaced
21:73124dd49283 22:303b85d5b561
76 * 76 *
77 * @see self::$app, self::$storage, self::$opt, self::$parts 77 * @see self::$app, self::$storage, self::$opt, self::$parts
78 */ 78 */
79 function __construct($uid, $folder = null, $is_safe = false) 79 function __construct($uid, $folder = null, $is_safe = false)
80 { 80 {
81 $context = null;
81 // decode combined UID-folder identifier 82 // decode combined UID-folder identifier
82 if (preg_match('/^[0-9.]+-.+/', $uid)) { 83 if (preg_match('/^[0-9.]+-.+/', $uid)) {
83 list($uid, $folder) = explode('-', $uid, 2); 84 list($uid, $folder) = explode('-', $uid, 2);
84 } 85 }
85 86
102 103
103 if (!$this->headers) { 104 if (!$this->headers) {
104 return; 105 return;
105 } 106 }
106 107
107 $this->set_safe($is_safe || $_SESSION['safe_messages'][$this->folder.':'.$uid]); 108 $this->set_safe($is_safe || ($_SESSION['safe_messages'][$this->folder.':'.$uid]??null));
108 $this->opt = array( 109 $this->opt = array(
109 'safe' => $this->is_safe, 110 'safe' => $this->is_safe,
110 'prefer_html' => $this->app->config->get('prefer_html'), 111 'prefer_html' => $this->app->config->get('prefer_html'),
111 'get_url' => $this->app->url(array( 112 'get_url' => $this->app->url(array(
112 'action' => 'get', 113 'action' => 'get',