Changeset 3989

Show
Ignore:
Timestamp:
07/05/06 22:40:05 (3 years ago)
Author:
ryan
Message:

Bump kses to 0.2.2. Props westi. fixes #2661

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/kses.php

    r3577 r3989  
    22 
    33// Added wp_ prefix to avoid conflicts with existing kses users 
    4 # kses 0.2.1 - HTML/XHTML filter that only allows some elements and attributes 
    5 # Copyright (C) 2002, 2003  Ulf Harnhammar 
     4# kses 0.2.2 - HTML/XHTML filter that only allows some elements and attributes 
     5# Copyright (C) 2002, 2003, 2005  Ulf Harnhammar 
    66# *** CONTACT INFORMATION *** 
    77# 
     
    114114    $attrlist = $matches[3]; 
    115115 
    116     if (!@ is_array($allowed_html[strtolower($elem)])) 
     116    if (!@isset($allowed_html[strtolower($elem)])) 
    117117        return ''; 
    118118    # They are using a not allowed HTML element 
     
    367367{ 
    368368    $string = wp_kses_no_null($string); 
     369    $string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature" 
    369370    $string2 = $string.'a'; 
    370371 
     
    379380function wp_kses_no_null($string) 
    380381############################################################################### 
    381 # This function removes any NULL or chr(173) characters in $string. 
     382# This function removes any NULL characters in $string. 
    382383############################################################################### 
    383384{ 
     
    455456    $string2 = preg_replace('/\s/', '', $string2); 
    456457    $string2 = wp_kses_no_null($string2); 
     458    $string2 = preg_replace('/\xad+/', '', $string2); 
     459    # deals with Opera "feature" 
    457460    $string2 = strtolower($string2); 
    458461