Ignore:
Timestamp:
Jun 1, 2010, 9:52:44 PM (14 years ago)
Author:
rvelices
Message:
  • do not remove slashes before calling insert_user_comment (homogeneity with update_user_comment and general use of slashes in piwigo)
  • when using a modifier on a non array variable use @| instead of | (generated code is simpler and faster)
File:
1 edited

Legend:

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

    r6363 r6437  
    549549
    550550  $comm = array(
    551     'author' => trim( stripslashes($params['author']) ),
    552     'content' => trim( stripslashes($params['content']) ),
     551    'author' => trim( $params['author'] ),
     552    'content' => trim( $params['content'] ),
    553553    'image_id' => $params['image_id'],
    554554   );
     
    13571357  $res = array();
    13581358  $res['username'] = is_a_guest() ? 'guest' : stripslashes($user['username']);
    1359   foreach ( array('status', 'template', 'theme', 'language') as $k )
     1359  foreach ( array('status', 'theme', 'language') as $k )
    13601360  {
    13611361    $res[$k] = $user[$k];
Note: See TracChangeset for help on using the changeset viewer.