histogram: Make histograms crash less
[ninja.git] / application / helpers / security.php
blob95937166a784712effd826a6de5fc2a3190e7b71
1 <?php
2 defined('SYSPATH') or die('No direct access allowed.');
4 /**
5 * Add functionality to kohanas built-in security helper
6 */
7 class security_Core {
8 /**
9 * Escape scring only if told to
11 public static function xss_clean($str) {
12 if (config::get_cgi_cfg_key('escape_html_tags')) {
13 return str_replace(html::specialchars('<br />'), '<br />', html::specialchars($str));
15 return $str;