Skip to content
Snippets Groups Projects
Commit b7071b6c authored by Steven Wittens's avatar Steven Wittens
Browse files

#79052: Category name cannot contain ampersands

parent 389916b8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -776,7 +776,7 @@ function profile_validate_profile($edit, $category) {
function profile_categories() {
$result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
while ($category = db_fetch_object($result)) {
$data[] = array('name' => check_plain($category->category), 'title' => $category->category, 'weight' => 3);
$data[] = array('name' => $category->category, 'title' => $category->category, 'weight' => 3);
}
return $data;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment