Ignore:
Timestamp:
Jun 1, 2010, 9:56:07 PM (14 years ago)
Author:
rvelices
Message:

merge r6437 from trunk to branch 2.1

  • 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
  • branches/2.1/include/ws_functions.inc.php

    r6364 r6438  
    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.