Make WordPress Core


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

More clean_url and int casts for trunk.

File:
1 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        }
Note: See TracChangeset for help on using the changeset viewer.