You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$checkHostCli->check(newUrl('https://verbose.example'), null, true, true, true, true, true, false, 'Help I need some<body>');
88
91
$checkHostCli->check(newUrl('https://non-verbose.example'), null, true, false, true, true, true, false, 'Help I need some<body>');
89
92
$output = ob_get_clean();
90
93
$expected = <<< EOT
91
-
[1;90m[Info][0m Parsing security.txt for [1mnon-verbose.example[0m
92
-
[1;90m[Info][0m Using [1mhttps://non-verbose.example/.well-known/security.txt[0m
94
+
[1;90m[Info][0m Parsing security.txt for [1mverbose.example[0m
95
+
[1;90m[Info][0m Loading security.txt from [1mhttps://verbose.example/.well-known/security.txt[0m
96
+
[1;90m[Info][0m Loading security.txt from [1mhttps://verbose.example/security.txt[0m
97
+
[1;90m[Info][0m Redirected from [1mhttps://verbose.example/security.txt[0m to [1mhttps://nah1.example/[0m
98
+
[1;90m[Info][0m Not found [1mhttps://nah1.example/[0m
99
+
[1;90m[Info][0m Using [1mhttps://verbose.example/.well-known/security.txt[0m
93
100
[1;31m[Error][0m on line [1m2[0m: The file is considered stale and should not be used (How to fix: The Expires field should contain a date and time in the future formatted according to the Internet profile of ISO 8601 as defined in RFC 3339, e.g. {$this->getExpiresExample()})
94
101
[1m[Warning][0m security.txt not found at the top-level path (How to fix: Redirect the top-level file to the one under the /.well-known/ path)
95
102
[1;31m[Error][0m [1;31mThe file has expired 42 days ago[0m ({$this->expires})
96
103
[1;31m[Error][0m [1;31mThe file is invalid[0m
104
+
[1;90m[Info][0m Parsing security.txt for [1mnon-verbose.example[0m
105
+
[1;90m[Info][0m Using [1mhttps://non-verbose.example/.well-known/security.txt[0m
106
+
[1;31m[Error][0m The Expires field must always be present (How to fix: Add an Expires field with a date and time in the future formatted according to the Internet profile of ISO 8601 as defined in RFC 3339, e.g. 2027-04-14T23:59:59+00:00)
107
+
[1m[Warning][0m security.txt not found at the top-level path (How to fix: Redirect the top-level file to the one under the /.well-known/ path)
0 commit comments