Changeset 2548
- Timestamp:
- 04/21/08 13:47:53 (5 months ago)
- Location:
- trunk/system
- Files:
-
- 3 modified
-
helpers/form.php (modified) (1 diff)
-
views/kohana_error_disabled.php (modified) (1 diff)
-
views/kohana_error_page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/form.php
r2518 r2548 34 34 { 35 35 // Use the current URL as the default action 36 $action = url::site(Router::$current_uri); 36 // Apply htmlspecialchars to current URI to prevent XSS 37 $action = url::site(html::specialchars(Router::$current_uri)); 37 38 } 38 39 elseif (strpos($action, '://') === FALSE) -
trunk/system/views/kohana_error_disabled.php
r2287 r2548 10 10 </style> 11 11 <div id="framework_error" style="width:24em;margin:50px auto;"> 12 <h3><?php echo $error?></h3>13 <p style="text-align:center"><?php echo $message?></p>12 <h3><?php echo html::specialchars($error) ?></h3> 13 <p style="text-align:center"><?php echo html::specialchars($message) ?></p> 14 14 </div> 15 15 </body> -
trunk/system/views/kohana_error_page.php
r2251 r2548 11 11 </style> 12 12 <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> 15 15 <?php if ( ! empty($line) AND ! empty($file)): ?> 16 16 <p><?php echo Kohana::lang('core.error_file_line', $file, $line) ?></p> 17 17 <?php endif ?> 18 <p><code class="block"><?php echo $message?></code></p>18 <p><code class="block"><?php echo html::specialchars($message) ?></code></p> 19 19 <?php if ( ! empty($trace)): ?> 20 20 <h3><?php echo Kohana::lang('core.stack_trace') ?></h3>
