Changeset 315

Show
Ignore:
Timestamp:
05/08/06 08:42:19 (3 years ago)
Author:
carmartin
Message:

profile/edit: remove unnecessary addslashes() -- now insert_record() is data-safe

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/profile/edit.php

    r313 r315  
    7272                     
    7373                //TODO get rid of variable duplication here. (Penny) 
    74                 $value = addslashes($value); 
    75                 $field = addslashes($field); 
    76                 $access = addslashes($_POST['profileaccess'][$field]); 
    77                 $owner = (int) $page_owner; 
    78                      
     74                $owner  = (int) $page_owner; 
     75                $access = $_POST['profileaccess'][$field];                     
     76 
    7977                $pd = new StdClass; 
    80                 $pd->name = $field; 
    81                 $pd->value = $value; 
     78                $pd->name   = $field; 
     79                $pd->value = $value; 
    8280                $pd->access = $access; 
    83                 $pd->owner = $owner; 
    84                 $insert_id = insert_record('profile_data',$pd); 
     81                $pd->owner  = $owner; 
     82 
     83                $insert_id  = insert_record('profile_data',$pd); 
    8584                     
    8685                foreach($data['profile:details'] as $datatype) {