request->getScriptName(); $processingScript = explode('/', $requestUri); $processingScript = $processingScript[count($processingScript) - 1]; if ($processingScript !== 'index.php') { return; } $noSSC = $this->reflector->hasAnnotation('NoSameSiteCookieRequired'); if ($noSSC) { return; } if (!$this->request->passesLaxCookieCheck()) { throw new LaxSameSiteCookieFailedException(); } } public function afterException($controller, $methodName, \Exception $exception) { if ($exception instanceof LaxSameSiteCookieFailedException) { $response = new Response(); $response->setStatus(Http::STATUS_FOUND); $response->addHeader('Location', $this->request->getRequestUri()); $this->setSameSiteCookie(); return $response; } throw $exception; } protected function setSameSiteCookie(): void { $cookieParams = $this->request->getCookieParams(); $secureCookie = ($cookieParams['secure'] === true) ? 'secure; ' : ''; $policies = [ 'lax', 'strict', ]; // Append __Host to the cookie if it meets the requirements $cookiePrefix = ''; if ($cookieParams['secure'] === true && $cookieParams['path'] === '/') { $cookiePrefix = '__Host-'; } foreach ($policies as $policy) { header( sprintf( 'Set-Cookie: %snc_sameSiteCookie%s=true; path=%s; httponly;' . $secureCookie . 'expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=%s', $cookiePrefix, $policy, $cookieParams['path'], $policy ), false ); } } } sibility Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fopwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine/standard-testcases/region-body_column-count_bug37813.xml
blob: 01302463d15745fff351df95f04733f86e555980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59