Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Rasmus proposed removing XSS blacklisting from Kohana for sake of escaping the output with <code>htmlspecialchars() - HTML::chars()</code> or using HTMLpurifier in case you really need to let some HTML in.</p> <p>Since 3.1, Security doesn't have the <code>xss_clean()</code> method by default, you'll have to install <a href="https://github.com/shadowhand/purifier" rel="nofollow">shadowhand's HTMLpurifier</a> module for securing input strings (by adding the submodule from github, putting it in modules and enabling it in bootstrap). </p> <p>The module itself will override default Security class and add the <code>xss_clean()</code> method which uses <a href="http://htmlpurifier.org/" rel="nofollow">HTMLpurifier</a> for escaping. There is also a config file for the module where you can set everything up on your application level. No input escaping is done "automatically" for many reasons; overhead, consistency, etc.</p> <p>As Request was pretty much rewritten in this version to match the RFC 2616 and get even more powerful HMVC, you'll be accessing your query string vars with <code>Request::query()</code> [ <code>$this-&gt;request-&gt;query()</code> inside of your controllers ], but there is still no escaping done on that side (each request can have it's own headers, POST, GET, etc.)</p> <p>The easiest way for you to escape the current POST vars would be to do:</p> <pre><code>$safe = Arr::map('Security::xss_clean', $this-&gt;request-&gt;post()); </code></pre> <p>P.S. Don't pay too much attention on nonsense written here about <code>$this-&gt;request-&gt;param()</code>, it's only for accessing the matched Route's parameters, not your GET or POST vars.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload