Skip to main content
sjoshi
Staff
Staff
June 20, 2025

Troubleshooting Tip: FortiGate admin login page shows HTML code instead of disclaimer message

  • June 20, 2025
  • 1 reply
  • 811 views

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-text


tau-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

 

2.PNG

 

config system global
    set pre-login-banner enable 
end

 

After accessing the FortiGate, it displays the following raw HTML code:

 

1.PNG

 

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

    1 reply

    New Member
    September 3, 2026

    I am at 7.4.12 but it is the same issue so it has not been resolved

     

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT