diff options
author | plegall <plg@piwigo.org> | 2010-07-27 12:37:38 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-07-27 12:37:38 +0000 |
commit | a61e471e02b901727842745304b52f5c357734e8 (patch) | |
tree | daa2c91884e14bfbbc9ad60092ebd73b7f6b9bf3 /admin/element_set_unit.php | |
parent | aadf746e49231df14c4a94ca31f9eb2979d9faed (diff) |
merge r6713 from branch 2.1 to trunk
bug 1757 fixed: ability to use HTML in author field
git-svn-id: http://piwigo.org/svn/trunk@6714 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/element_set_unit.php')
-rw-r--r-- | admin/element_set_unit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php index 5dbeb4f68..17b83dcef 100644 --- a/admin/element_set_unit.php +++ b/admin/element_set_unit.php @@ -67,7 +67,7 @@ SELECT id, date_creation $data['author'] = $_POST['author-'.$row['id']]; $data['level'] = $_POST['level-'.$row['id']]; - foreach (array('name', 'author', 'level') as $field) + foreach (array('name', 'level') as $field) { if (!empty($_POST[$field.'-'.$row['id']])) { @@ -238,7 +238,7 @@ SELECT PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. '&image_id='.$row['id'], 'NAME' => !empty($row['name'])?$row['name']:'', - 'AUTHOR' => !empty($row['author'])?$row['author']:'', + 'AUTHOR' => !empty($row['author'])?htmlspecialchars($row['author']):'', 'LEVEL' => !empty($row['level'])?$row['level']:'0', 'DESCRIPTION' => !empty($row['comment'])?$row['comment']:'', 'DATE_CREATION_YEAR' => $year, |