Merge pull request #6697 from marc1706/ticket/17022

[ticket/17022] Fix SQL report link
This commit is contained in:
Marc Alexander 2024-07-27 08:10:32 +02:00 committed by GitHub
commit 1444a1a02b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4032,7 +4032,9 @@ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \php
if ($auth->acl_get('a_'))
{
$debug_info[] = '<a href="' . build_url() . '&amp;explain=1">SQL Explain</a>';
$page_url = build_url();
$page_url .= ((!str_contains($page_url, '?')) ? '?' : '&amp;') . 'explain=1';
$debug_info[] = '<a href="' . $page_url . '">SQL Explain</a>';
}
}