Changeset 4509


Ignore:
Timestamp:
Dec 18, 2009, 12:00:09 AM (14 years ago)
Author:
plg
Message:

bug 1328: implements check_pwg_token for comment deletion on picture.php

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/picture_comment.inc.php

    r3147 r4509  
    150150                  array(
    151151                    'action'=>'delete_comment',
    152                     'comment_to_delete'=>$row['id']
     152                    'comment_to_delete'=>$row['id'],
     153                    'pwg_token'=>get_pwg_token(),
    153154                  )
    154155              );
  • branches/2.0/picture.php

    r3123 r4509  
    310310    case 'delete_comment' :
    311311    {
     312      check_pwg_token();
     313     
    312314      if (isset($_GET['comment_to_delete'])
    313315          and is_numeric($_GET['comment_to_delete'])
Note: See TracChangeset for help on using the changeset viewer.