Make WordPress Core


Ignore:
Timestamp:
02/22/2010 06:15:10 PM (15 years ago)
Author:
nacin
Message:

Use esc_url() instead of clean_url(). See #12309

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r13242 r13297  
    262262###SITEURL###"), $new_admin_email );
    263263
    264     $content = str_replace('###ADMIN_URL###', clean_url(get_option( "siteurl" ).'/wp-admin/options.php?adminhash='.$hash), $content);
     264    $content = str_replace('###ADMIN_URL###', esc_url(get_option( "siteurl" ).'/wp-admin/options.php?adminhash='.$hash), $content);
    265265    $content = str_replace('###EMAIL###', $value, $content);
    266266    $content = str_replace('###SITENAME###', get_site_option( 'site_name' ), $content);
     
    313313###SITEURL###"), $new_user_email );
    314314
    315         $content = str_replace('###ADMIN_URL###', clean_url(get_option( "siteurl" ).'/wp-admin/profile.php?newuseremail='.$hash), $content);
     315        $content = str_replace('###ADMIN_URL###', esc_url(get_option( "siteurl" ).'/wp-admin/profile.php?newuseremail='.$hash), $content);
    316316        $content = str_replace('###EMAIL###', $_POST[ 'email' ], $content);
    317317        $content = str_replace('###SITENAME###', get_site_option( 'site_name' ), $content);
Note: See TracChangeset for help on using the changeset viewer.