#79052: Category name cannot contain ampersands
parent
389916b8be
commit
b7071b6c2c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue