Ignore:
Timestamp:
Jul 1, 2009, 10:56:41 PM (15 years ago)
Author:
rvelices
Message:
  • remove warn on unset variable
  • insert_user_comment expects now the comment content to be sql safe (works now exactly as update_user_comment)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_comment.inc.php

    r3452 r3488  
    4747
    4848  $comm = array(
    49     'author' => trim( stripslashes(@$_POST['author']) ),
    50     'content' => trim( stripslashes($_POST['content']) ),
     49    'author' => trim(@$_POST['author']),
     50    'content' => trim($_POST['content']),
    5151    'image_id' => $page['image_id'],
    5252   );
     
    122122    {
    123123      $validated_clause = '  AND validated = \'true\'';
    124     } 
    125     else 
     124    }
     125    else
    126126    {
    127127      $validated_clause = '';
     
    143143    while ($row = mysql_fetch_array($result))
    144144    {
    145       if (!empty($row['author'])) 
     145      if (!empty($row['author']))
    146146      {
    147147        $author = $row['author'];
     
    196196        if ($row['validated'] != 'true')
    197197        {
    198           $tpl_comment['U_VALIDATE'] = 
     198          $tpl_comment['U_VALIDATE'] =
    199199            add_url_params($url_self,
    200200                           array('action' => 'validate_comment',
Note: See TracChangeset for help on using the changeset viewer.