Skip to content
Permalink
Browse files

Fixing doubly encoded action attributes in FormHelper.

Fixes #1748
  • Loading branch information...
markstory committed Jun 23, 2011
1 parent f3f0363 commit 13bcaaf2eb74bff18f90a61f5ce100b5b1dfc998
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/view/helpers/form.php
@@ -290,7 +290,7 @@ function create($model = null, $options = array()) {
}
$this->requestType = strtolower($options['type']);
$htmlAttributes['action'] = $this->url($options['action']);
$action = $this->url($options['action']);
unset($options['type'], $options['action']);
if ($options['default'] == false) {
@@ -321,7 +321,7 @@ function create($model = null, $options = array()) {
}
$this->setEntity($model . '.', true);
$attributes = $this->_parseAttributes($htmlAttributes, null, '');
$attributes = sprintf('action="%s" ', $action) . $this->_parseAttributes($htmlAttributes, null, '');
return sprintf($this->Html->tags['form'], $attributes) . $append;
}

0 comments on commit 13bcaaf

Please sign in to comment.
You can’t perform that action at this time.