s/esc_url_raw/esc_url/. Props duck_.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-04-01 19:29:06 +00:00
parent ca26b494da
commit 05f63a579b
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>='
switch ( $step ) :
case 0:
$goback = stripslashes( wp_get_referer() );
$goback = esc_url_raw( $goback );
$goback = esc_url( $goback );
$goback = urlencode( $goback );
?>
<h2><?php _e( 'Database Update Required' ); ?></h2>
@ -86,7 +86,7 @@ switch ( $step ) :
wp_upgrade();
$backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/';
$backto = esc_url_raw( $backto );
$backto = esc_url( $backto );
$backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
?>
<h2><?php _e( 'Update Complete' ); ?></h2>

View File

@ -2413,7 +2413,7 @@ function wp_shortlink_wp_head() {
if ( empty( $shortlink ) )
return;
echo "<link rel='shortlink' href='" . esc_url_raw( $shortlink ) . "' />\n";
echo "<link rel='shortlink' href='" . esc_url( $shortlink ) . "' />\n";
}
/**