Fixed encoding of SystemException
authorAlexander Ebert <ebert@woltlab.com>
Thu, 8 Aug 2013 18:56:19 +0000 (20:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 8 Aug 2013 18:56:19 +0000 (20:56 +0200)
wcfsetup/install/files/lib/system/exception/SystemException.class.php

index 24b0ee01139fff48b39be57fbfa1f9211a0cf9d4..60db722739b002a12a65e50f684bd01713031014 100644 (file)
@@ -81,14 +81,12 @@ class SystemException extends LoggedException implements IPrintableException {
                }
                
                // print report
-               echo '<?xml version="1.0" encoding="UTF-8"?>';
                $e = ($this->getPrevious() ?: $this);
-               ?>
-
-               <!DOCTYPE html>
+               ?><!DOCTYPE html>
                <html>
                        <head>
                                <title>Fatal error: <?php echo StringUtil::encodeHTML($this->_getMessage()); ?></title>
+                               <meta charset="utf-8" />
                                <style>
                                        .systemException {
                                                font-family: 'Trebuchet MS', Arial, sans-serif !important;