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/functions_mail.inc.php

    r4265 r4304  
    365365    $keyargs_content_admin_info = array
    366366    (
    367       get_l10n_args('Connected user: %s', $user['username']),
     367      get_l10n_args('Connected user: %s', stripslashes($user['username'])),
    368368      get_l10n_args('IP: %s', $_SERVER['REMOTE_ADDR']),
    369369      get_l10n_args('Browser: %s', $_SERVER['HTTP_USER_AGENT'])
     
    484484          if (!empty($row['mail_address']))
    485485          {
    486             array_push($Bcc, format_email($row['username'], $row['mail_address']));
     486            array_push($Bcc, format_email(stripslashes($row['username']), $row['mail_address']));
    487487          }
    488488        }
     
    795795    if ( mkgetdir( $dir,  MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR) )
    796796    {
    797       $filename = $dir.'/mail.'.$user['username'].'.'.$lang_info['code'].'.'.$args['template'].'.'.$args['theme'];
     797      $filename = $dir.'/mail.'.stripslashes($user['username']).'.'.$lang_info['code'].'.'.$args['template'].'.'.$args['theme'];
    798798      if ($args['content_format'] == 'text/plain')
    799799      {
Note: See TracChangeset for help on using the changeset viewer.