@@ -211,7 +211,7 @@ |
||
211 | 211 | $data["info"]['display_message'] = _("You don't have the permission to complete this action"); |
212 | 212 | $this->addActionData("error", $data); |
213 | 213 | } |
214 | - if($error === "ecQuotaExceeded") { |
|
214 | + if ($error === "ecQuotaExceeded") { |
|
215 | 215 | // Handling error: Send quota error |
216 | 216 | $data = []; |
217 | 217 | $data["type"] = 1; // MAPI |
@@ -218,7 +218,7 @@ |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | $Language->setLanguage($lang); |
221 | - setcookie('lang', $lang, [ 'lifetime' => time() + 31536000, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Strict' ]); |
|
221 | + setcookie('lang', $lang, ['lifetime' => time() + 31536000, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Strict']); |
|
222 | 222 | |
223 | 223 | // add extra header |
224 | 224 | header("X-grommunio: " . trim(file_get_contents('version'))); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | WebAppAuthentication::_storeMAPISession(WebAppAuthentication::$_mapiSession->getSession()); |
186 | 186 | $tmp = explode('@', $username); |
187 | 187 | if (count($tmp) == 2) { |
188 | - setcookie('domainname', $tmp[1], [ 'lifetime' => time() + 31536000, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Strict' ]); |
|
188 | + setcookie('domainname', $tmp[1], ['lifetime' => time() + 31536000, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Strict']); |
|
189 | 189 | } |
190 | 190 | $wa_title = WebAppAuthentication::$_mapiSession->getFullName(); |
191 | 191 | $companyname = WebAppAuthentication::$_mapiSession->getCompanyName(); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $wa_title .= " ({$companyname})"; |
194 | 194 | } |
195 | 195 | if (strlen($wa_title) != 0) { |
196 | - setcookie('webapp_title', $wa_title, [ 'lifetime' => time() + 31536000, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Strict' ]); |
|
196 | + setcookie('webapp_title', $wa_title, ['lifetime' => time() + 31536000, 'path' => '/', 'domain' => '', 'secure' => true, 'httponly' => true, 'samesite' => 'Strict']); |
|
197 | 197 | } |
198 | 198 | } |
199 | 199 | elseif (WebAppAuthentication::$_errorCode == MAPI_E_LOGON_FAILED || WebAppAuthentication::$_errorCode == MAPI_E_UNCONFIGURED) { |