Commit 1375ff98 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up form class.

parent 4fe64b3a
......@@ -24,11 +24,13 @@ class Form {
$action = Request::uri();
}
$action = URL::to($action);
$attributes['action'] = HTML::entities($action);
$attributes['action'] = HTML::entities(URL::to($action));
$attributes['method'] = ($method == 'GET' or $method == 'POST') ? $method : 'POST';
// -------------------------------------------------------
// Set the default character set if it hasn't already been
// set in the attributes.
// -------------------------------------------------------
if ( ! array_key_exists('accept-charset', $attributes))
{
$attributes['accept-charset'] = Config::get('application.encoding');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment