WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2010 03:28:58 PM (9 years ago)
Author:
ryan
Message:

Simplify sanitize_key() and use it in more places. see #14910

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r15590 r15635  
    764764function sanitize_key( $key ) {
    765765    $raw_key = $key;
    766     $key = wp_strip_all_tags($key);
    767     // Kill octets
    768     $key = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '', $key);
    769     $key = preg_replace('/&.+?;/', '', $key); // Kill entities
    770766
    771767    $key = preg_replace('|[^a-z0-9 _.\-@]|i', '', $key);
Note: See TracChangeset for help on using the changeset viewer.