Permalink
Browse files

Bug 554198 - [p=reed r=ozten]

git-svn-id: https://svn.mozilla.org/projects/plugindir/trunk@64588 4eb1ac78-321c-0410-a911-ec516a8615a5
  • Loading branch information...
1 parent d064e18 commit 646f81daa5671112e6c30b00eb5b495c3d43c18d reed@reedloden.com committed with Mar 23, 2010
Showing with 6 additions and 6 deletions.
  1. +3 −3 system/views/kohana_error_disabled.php
  2. +3 −3 system/views/kohana_error_page.php
@@ -6,12 +6,12 @@
<?php include Kohana::find_file('views', 'kohana_errors', FALSE, 'css') ?>
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title><?php echo $error ?></title>
+<title><?php echo html::specialchars($error) ?></title>
</head>
<body>
<div id="framework_error" style="width:24em;margin:50px auto;">
<h3><?php echo html::specialchars($error) ?></h3>
-<p style="text-align:center"><?php echo $message ?></p>
+<p style="text-align:center"><?php echo html::specialchars($message) ?></p>
</div>
</body>
-</html>
+</html>
@@ -6,7 +6,7 @@
<?php include Kohana::find_file('views', 'kohana_errors', FALSE, 'css') ?>
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title><?php echo $error ?></title>
+<title><?php echo html::specialchars($error) ?></title>
<base href="http://php.net/" />
</head>
<body>
@@ -16,12 +16,12 @@
<?php if ( ! empty($line) AND ! empty($file)): ?>
<p><?php echo Kohana::lang('core.error_file_line', $file, $line) ?></p>
<?php endif ?>
-<p><code class="block"><?php echo $message ?></code></p>
+<p><code class="block"><?php echo html::specialchars($message) ?></code></p>
<?php if ( ! empty($trace)): ?>
<h3><?php echo Kohana::lang('core.stack_trace') ?></h3>
<?php echo $trace ?>
<?php endif ?>
<p class="stats"><?php echo Kohana::lang('core.stats_footer') ?></p>
</div>
</body>
-</html>
+</html>

0 comments on commit 646f81d

Please sign in to comment.