Fix HTTP Content-Type headers and meta tags to enforce UTF-8 encoding on all pages and error screens
This commit is contained in:
@@ -480,8 +480,8 @@ EOM
|
||||
|
||||
# エラー表示
|
||||
sub error{
|
||||
print "Content-type: text/html\n\n";
|
||||
print "<html><head><title>CGI Error</title></head>\n";
|
||||
print "Content-type: text/html; charset=UTF-8\n\n";
|
||||
print "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><title>CGI Error</title></head>\n";
|
||||
print "<body $body><h1>CGI Error</h1>\n";
|
||||
print "<p>This program encountered an internal error.</p>";
|
||||
print "<p><b>Error:</b> $_[0]</p>\n";
|
||||
|
||||
Reference in New Issue
Block a user