Commit 1b5ce2b1 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#206272 report by yojoe, patch by myself: user provided data in menu titles...

#206272 report by yojoe, patch by myself: user provided data in menu titles should be check_plain()-ed not t()-ed
parent 877122a4
...@@ -1423,6 +1423,7 @@ function node_menu() { ...@@ -1423,6 +1423,7 @@ function node_menu() {
$type_url_str = str_replace('_', '-', $type->type); $type_url_str = str_replace('_', '-', $type->type);
$items['node/add/'. $type_url_str] = array( $items['node/add/'. $type_url_str] = array(
'title' => drupal_ucfirst($type->name), 'title' => drupal_ucfirst($type->name),
'title callback' => 'check_plain',
'page callback' => 'node_add', 'page callback' => 'node_add',
'page arguments' => array(2), 'page arguments' => array(2),
'access callback' => 'node_access', 'access callback' => 'node_access',
......
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