Make WordPress Core


Ignore:
Timestamp:
12/12/2004 08:41:19 PM (21 years ago)
Author:
saxmatt
Message:

Axing htmlspecialchars because it double-encodes-encodes. Better error handling around queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-trackback.php

    r1918 r1940  
    8383        trackback_response(1, 'Sorry, trackbacks are closed for this item.');
    8484
    85     $title = strip_tags( htmlspecialchars( $title ) );
     85    $title =  wp_specialchars( strip_tags( $title ) );
    8686    $title = (strlen($title) > 250) ? substr($title, 0, 250) . '...' : $title;
    8787    $excerpt = strip_tags($excerpt);
    8888    $excerpt = (strlen($excerpt) > 255) ? substr($excerpt, 0, 252) . '...' : $excerpt;
    89     $blog_name = htmlspecialchars($blog_name);
     89    $blog_name = wp_specialchars($blog_name);
    9090    $blog_name = (strlen($blog_name) > 250) ? substr($blog_name, 0, 250) . '...' : $blog_name;
    9191
Note: See TracChangeset for help on using the changeset viewer.