Make WordPress Core


Ignore:
Timestamp:
04/15/2008 06:05:08 PM (16 years ago)
Author:
ryan
Message:

Strip slashes before preparing comment insert to avoid double-slashing. Props filosofo. fixes #6738

File:
1 edited

Legend:

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

    r7657 r7690  
    571571function wp_insert_comment($commentdata) {
    572572    global $wpdb;
    573     extract($commentdata, EXTR_SKIP);
     573    extract(stripslashes_deep($commentdata), EXTR_SKIP);
    574574
    575575    if ( ! isset($comment_author_IP) )
     
    768768
    769769    // Now extract the merged array.
    770     extract($commentarr, EXTR_SKIP);
     770    extract(stripslashes_deep($commentarr), EXTR_SKIP);
    771771
    772772    $comment_content = apply_filters('comment_save_pre', $comment_content);
Note: See TracChangeset for help on using the changeset viewer.