Changeset 28942 for trunk/src/wp-includes/kses.php
- Timestamp:
- 07/01/2014 06:00:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r28845 r28942 992 992 993 993 /** 994 * Removes any null characters in $string. 994 * Removes any invalid control characters in $string. 995 * 996 * Also removes any instance of the '\0' string. 995 997 * 996 998 * @since 1.0.0 … … 1000 1002 */ 1001 1003 function wp_kses_no_null($string) { 1002 $string = preg_replace('/ \0+/', '', $string);1004 $string = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F]/', '', $string); 1003 1005 $string = preg_replace('/(\\\\0)+/', '', $string); 1004 1006
Note: See TracChangeset
for help on using the changeset viewer.