1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/16799] Fix OAuth external account linking PHP fatal error

PHPBB3-16799
This commit is contained in:
rxu
2021-06-14 00:25:36 +07:00
parent b7f57eb556
commit 7b5ad8bb74
5 changed files with 65 additions and 6 deletions

View File

@@ -973,7 +973,7 @@ class phpbb_functional_test_case extends phpbb_test_case
// Any output before the doc type means there was an error
$content = self::get_content();
self::assertStringNotContainsString('[phpBB Debug]', $content);
self::assertStringStartsWith('<!DOCTYPE', trim($content), 'Output found before DOCTYPE specification.');
self::assertStringStartsWith('<!DOCTYPE', strtoupper(substr(trim($content), 0, 10)), 'Output found before DOCTYPE specification.');
if ($status_code !== false)
{