Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions general/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,30 @@ <h3 id="config">Configuration options</h3>
<strong>Array, containing the configuration keys to control your application security:</strong>
</td>
</tr>
<tr>
<td colspan="4">
<p class="note">
In 1.5.2, some important default settings were changed.
In concrete, <strong>uri_filter</strong>, <strong>output_filter</strong>, and <strong>whitelisted_classes</strong>.
If you use the default settings then your View will not be properly escaped.
If you want to be 1.4 (or more older's) behavior, add below in <strong>app/config/config.php</strong>.

<pre class="php"><code>
'security' => array(
'uri_filter' => array('htmlentities'),
'output_filter' => array('Security::htmlentities'),
'whitelisted_classes' => array(
'Fuel\\Core\\Response',
'Fuel\\Core\\View',
'Fuel\\Core\\ViewModel',
'Closure',
)
),
</code></pre>

</p>
</td>
</tr>
<tr>
<th>security.csrf_autoload</th>
<td>bool</td>
Expand Down Expand Up @@ -319,7 +343,7 @@ <h3 id="config">Configuration options</h3>
<tr>
<th>security.uri_filter</th>
<td>array</td>
<td><pre class="php"><code>array('htmlentities')</code></pre></td>
<td><pre class="php"><code>array()</code></pre></td>
<td>
What php functions to use to filter the URI.
</td>
Expand Down Expand Up @@ -352,13 +376,8 @@ <h3 id="config">Configuration options</h3>
</tr>
<tr>
<th>security.whitelisted_classes</th>
<td>array()</td>
<td><pre class="php"><code>array(
'stdClass',
'Fuel\\Core\\View',
'Fuel\\Core\\ViewModel',
'Closure'
)</code></pre></td>
<td>array</td>
<td><pre class="php"><code>array()</code></pre></td>
<td>
With output encoding switched on all objects passed will be converted to strings or throw exceptions
unless they are instances of the classes in this array.
Expand Down