Basic Information
Noticed while debugging that the view queries will produce an admin login page without templating. This just looks weird. Still functions normally.
Steps to reproduce
- Ensure your admin session is expired (Admin -> End session)
- Ensure that db_show_debug is enabled
- Click on a query at the bottom
- Your taking to the view query page
- Template is missing.
Expected result
Template
Actual result
White page with admin login form
Version/Git revision
1b91ed9
Database Engine
All
Database Version
No response
PHP Version
8.4
Logs
Additional Information
This happens because view query is defined as a simple action and then this line of code triggers the admin login
|
// Need to type in a password for that, man. |
|
if (!isset($_GET['xml'])) { |
|
ACP::adminLogin($type); |
|
} |
|
|
|
return 'session_verify_fail'; |
We don't have a way to detect that we would trigger an admin login. One may be needed so we can then update the same action check based on that condition.
Basic Information
Noticed while debugging that the view queries will produce an admin login page without templating. This just looks weird. Still functions normally.
Steps to reproduce
Expected result
Template
Actual result
White page with admin login form
Version/Git revision
1b91ed9
Database Engine
All
Database Version
No response
PHP Version
8.4
Logs
Additional Information
This happens because view query is defined as a simple action and then this line of code triggers the admin login
SMF/Sources/User.php
Lines 1994 to 1999 in ff4807f
We don't have a way to detect that we would trigger an admin login. One may be needed so we can then update the same action check based on that condition.