Skip to content
Permalink
Browse files

Making default scaffold views html escape contents. Refs #1186

  • Loading branch information...
markstory committed Oct 24, 2010
1 parent bf7b8b0 commit eb3cc3db3ab84941b0e4800eb16e456dbd492ed7
Showing with 2 additions and 2 deletions.
  1. +1 −1 cake/libs/view/scaffolds/index.ctp
  2. +1 −1 cake/libs/view/scaffolds/view.ctp
@@ -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";
}
}
@@ -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";
}
}
?>

0 comments on commit eb3cc3d

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