#79052: Category name cannot contain ampersands

5.x
Steven Wittens 2006-10-04 20:28:41 +00:00
parent 389916b8be
commit b7071b6c2c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}