#324880: SA-2008-067 (#324824): Fix XSS vulberability in book administration page.

merge-requests/26/head
Angie Byron 2008-11-08 19:33:53 +00:00
parent 4e369a6b7f
commit d2331ebdf7
1 changed files with 2 additions and 2 deletions

View File

@ -173,8 +173,8 @@ function _book_admin_table($node, &$form) {
* @see book_admin_edit()
*/
function _book_admin_table_tree($tree, &$form) {
foreach ($tree as $key => $data) {
$form[$key] = array(
foreach ($tree as $data) {
$form['book-admin-' . $data['link']['nid']] = array(
'#item' => $data['link'],
'nid' => array('#type' => 'value', '#value' => $data['link']['nid']),
'depth' => array('#type' => 'value', '#value' => $data['link']['depth']),