Skip to content

Commit

Permalink
Making default scaffold views html escape contents. Refs #1186
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 24, 2010
1 parent bf7b8b0 commit eb3cc3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/view/scaffolds/index.ctp
Expand Up @@ -47,7 +47,7 @@ echo "\n";
}
}
if ($isKey !== true) {
echo "\t\t<td>\n\t\t\t" . ${$singularVar}[$modelClass][$_field] . " \n\t\t</td>\n";
echo "\t\t<td>" . h(${$singularVar}[$modelClass][$_field]) . "</td>\n";
}
}

Expand Down
2 changes: 1 addition & 1 deletion cake/libs/view/scaffolds/view.ctp
Expand Up @@ -40,7 +40,7 @@ foreach ($scaffoldFields as $_field) {
}
if ($isKey !== true) {
echo "\t\t<dt{$class}>" . Inflector::humanize($_field) . "</dt>\n";
echo "\t\t<dd{$class}>\n\t\t\t{${$singularVar}[$modelClass][$_field]}\n&nbsp;\t\t</dd>\n";
echo "\t\t<dd{$class}>" . h(${$singularVar}[$modelClass][$_field]) . "&nbsp;</dd>\n";
}
}
?>
Expand Down

0 comments on commit eb3cc3d

Please sign in to comment.