Show
Ignore:
Timestamp:
04/21/2008 01:47:53 PM (7 months ago)
Author:
Geert
Message:

Security update to prevent XSS.
See: http://forum.kohanaphp.com/comments.php?DiscussionID=352

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana_error_page.php

    r2251 r2548  
    1111</style> 
    1212<div id="framework_error" style="width:42em;margin:20px auto;"> 
    13 <h3><?php echo $error ?></h3> 
    14 <p><?php echo $description ?></p> 
     13<h3><?php echo html::specialchars($error) ?></h3> 
     14<p><?php echo html::specialchars($description) ?></p> 
    1515<?php if ( ! empty($line) AND ! empty($file)): ?> 
    1616<p><?php echo Kohana::lang('core.error_file_line', $file, $line) ?></p> 
    1717<?php endif ?> 
    18 <p><code class="block"><?php echo $message ?></code></p> 
     18<p><code class="block"><?php echo html::specialchars($message) ?></code></p> 
    1919<?php if ( ! empty($trace)): ?> 
    2020<h3><?php echo Kohana::lang('core.stack_trace') ?></h3>