Ignore:
Timestamp:
Nov 25, 2007 2:45:38 PM (5 years ago)
Author:
thomasb
Message:

More input sanitizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r930 r931  
    12801280  } 
    12811281 
     1282/** 
     1283 * Remove all non-ascii and non-word chars 
     1284 * except . and - 
     1285 */ 
     1286function asciiwords($str) 
     1287{ 
     1288  return preg_replace('/[^a-z0-9.-_]/i', '', $str); 
     1289} 
    12821290 
    12831291/** 
Note: See TracChangeset for help on using the changeset viewer.