Ignore:
Timestamp:
Nov 18, 2009, 9:07:20 PM (14 years ago)
Author:
Eric
Message:

Escape all login and username characters in database
Display correctly usernames

(I hope not to have made mistakes)

File:
1 edited

Legend:

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

    r4265 r4304  
    4747
    4848  $comm = array(
    49     'author' => trim(@$_POST['author']),
    50     'content' => trim($_POST['content']),
     49    'author' => trim( stripslashes(@$_POST['author']) ),
     50    'content' => trim( stripslashes($_POST['content']) ),
    5151    'image_id' => $page['image_id'],
    5252   );
     
    153153      else
    154154      {
    155         $author = $row['username'];
     155        $author = stripslashes($row['username']);
    156156      }
    157157
Note: See TracChangeset for help on using the changeset viewer.