Changeset 9db57c5 in github


Ignore:
Timestamp:
Oct 31, 2005 6:47:03 PM (8 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
dba5f7c
Parents:
7cc38e0
Message:

Prevent from address book XSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/addressbook/save.inc

    rd7cb774 r9db57c5  
    3535      continue; 
    3636     
    37     $a_write_sql[] = sprintf("%s='%s'", $col, addslashes($_POST[$fname])); 
     37    $a_write_sql[] = sprintf("%s='%s'", $col, addslashes(strip_tags($_POST[$fname]))); 
    3838    } 
    3939 
     
    104104     
    105105    $a_insert_cols[] = $col; 
    106     $a_insert_values[] = sprintf("'%s'", addslashes($_POST[$fname])); 
     106    $a_insert_values[] = sprintf("'%s'", addslashes(strip_tags($_POST[$fname]))); 
    107107    } 
    108108     
Note: See TracChangeset for help on using the changeset viewer.