Changeset 69 in subversion


Ignore:
Timestamp:
Oct 31, 2005 7:01:40 PM (8 years ago)
Author:
roundcube
Message:

Prevent from identities XSS

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r67 r69  
    6969- Added sorting patch for message list 
    7070- Make default sort col/order configurable 
     71- Fixed XSS in address book and identities 
     72 
  • trunk/roundcubemail/program/steps/settings/save_identity.inc

    r58 r69  
    3434      continue; 
    3535 
    36     $a_write_sql[] = sprintf("`%s`='%s'", $col, addslashes($_POST[$fname])); 
     36    $a_write_sql[] = sprintf("`%s`='%s'", $col, addslashes(strip_tags($_POST[$fname]))); 
    3737    } 
    3838 
     
    8888     
    8989    $a_insert_cols[] = $DB->quoteIdentifier($col); 
    90     $a_insert_values[] = sprintf("'%s'", addslashes($_POST[$fname])); 
     90    $a_insert_values[] = sprintf("'%s'", addslashes(strip_tags($_POST[$fname]))); 
    9191    } 
    9292     
Note: See TracChangeset for help on using the changeset viewer.