Make WordPress Core

Changeset 5119


Ignore:
Timestamp:
03/27/2007 11:45:41 PM (18 years ago)
Author:
ryan
Message:

More clean_url and int casts for trunk.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r5118 r5119  
    491491        $user->user_email = wp_specialchars( trim( $_POST['email'] ));
    492492    if ( isset( $_POST['url'] ) ) {
    493         $user->user_url = wp_specialchars( trim( $_POST['url'] ));
     493        $user->user_url = clean_url( trim( $_POST['url'] ));
    494494        $user->user_url = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $user->user_url) ? $user->user_url : 'http://'.$user->user_url;
    495495    }
  • trunk/wp-includes/bookmark.php

    r4953 r5119  
    44    global $wpdb;
    55
     6    $bookmark_id = (int) $bookmark_id;
    67    $link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id'");
    78    $link->link_category = wp_get_link_cats($bookmark_id);
  • trunk/wp-includes/category.php

    r5112 r5119  
    151151        $_category = $category;
    152152    } else {
     153        $category = (int) $category;
    153154        if ( ! $_category = wp_cache_get($category, 'category') ) {
    154155            $_category = $wpdb->get_row("SELECT * FROM $wpdb->categories WHERE cat_ID = '$category' LIMIT 1");
  • trunk/wp-includes/comment.php

    r5089 r5119  
    8282        $_comment = & $comment_cache[$comment->comment_ID];
    8383    } else {
     84        $comment = (int) $comment;
    8485        if ( !isset($comment_cache[$comment]) ) {
    8586            $_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1");
Note: See TracChangeset for help on using the changeset viewer.