Troubleshooting Tip: FortiGate admin login page shows HTML code instead of disclaimer message
Description
Â
This article describes an issue where the FortiGate admin pre-login page displays raw HTML code instead of rendering the 'Pre-login Disclaimer Message' as intended, despite the message format being set to HTML.
Â
Scope
Â
FortiGate v7.2.11, v7.4.8, v7.6.3.
Â
Solution
Â
When a basic HTML pre-login disclaimer is defined, the FortiGate GUI displays the raw HTML code on the login page instead of rendering the formatted message.
Â
For example, defining the following basic HTML pre-login disclaimer causes the login page to display the raw HTML code instead of rendering it.
Â
tau-kvm171 config system replacemsg admin pre_admin-disclaimer-texttau-kvm171 (pre_admin-discla~ext) show
config system replacemsg admin "pre_admin-disclaimer-text"
set buffer "<!DOCTYPE html>
<html lang=\\\"en\\\">
<head>
Test
</head>
<body>
Test
</body>
</html>"
set header http
set format HTML
endÂ

Â
config system global
  set pre-login-banner enable
endÂ
After accessing the FortiGate, it displays the following raw HTML code:
Â

Â
The issue has been reported as a known issue and is fixed in v7.6.4.
