Commit b7071b6c authored by Steven Wittens's avatar Steven Wittens

#79052: Category name cannot contain ampersands

parent 389916b8
......@@ -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;
}
......
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