Ignore:
Timestamp:
07/27/10 14:37:38 (10 years ago)
Author:
plg
Message:

merge r6713 from branch 2.1 to trunk

bug 1757 fixed: ability to use HTML in author field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_unit.php

    r6363 r6714  
    6868    $data['level'] = $_POST['level-'.$row['id']]; 
    6969 
    70     foreach (array('name', 'author', 'level') as $field) 
     70    foreach (array('name', 'level') as $field) 
    7171    { 
    7272      if (!empty($_POST[$field.'-'.$row['id']])) 
     
    239239            '&image_id='.$row['id'], 
    240240        'NAME' => !empty($row['name'])?$row['name']:'', 
    241         'AUTHOR' => !empty($row['author'])?$row['author']:'', 
     241        'AUTHOR' => !empty($row['author'])?htmlspecialchars($row['author']):'', 
    242242        'LEVEL' => !empty($row['level'])?$row['level']:'0', 
    243243        'DESCRIPTION' => !empty($row['comment'])?$row['comment']:'', 
Note: See TracChangeset for help on using the changeset viewer.