Move `<meta charset="utf-8">` before `<title>` in exception handler
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 13:20:08 +0000 (14:20 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 13:20:08 +0000 (14:20 +0100)
see #3802

wcfsetup/install/files/lib/core.functions.php

index ec242b3a9bc739fb59da3b00368bbc7fbdc033be..4cc97ca124838523d52190b9ca635d3929128b0f 100644 (file)
@@ -252,12 +252,12 @@ EXPLANATION;
        ?><!DOCTYPE html>
        <html>
                <head>
+                       <meta charset="utf-8">
                        <?php if (!defined('EXCEPTION_PRIVACY') || EXCEPTION_PRIVACY !== 'private') { ?>
                        <title>Fatal Error: <?php echo StringUtil::encodeHTML($e->getMessage()); ?></title>
                        <?php } else { ?>
                        <title>Fatal Error</title>
                        <?php } ?>
-                       <meta charset="utf-8">
                        <meta name="viewport" content="width=device-width, initial-scale=1">
                        <style>
                                .exceptionBody {