use clean_url(). Nice catch, g30rg3x. see #4333 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@5588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-05-29 04:35:23 +00:00
parent 442ef7253a
commit c342666830
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ include ('admin-header.php');
<form name="profile" id="your-profile" action="user-edit.php" method="post">
<?php wp_nonce_field('update-user_' . $user_id) ?>
<?php if ( $wp_http_referer ) : ?>
<input type="hidden" name="wp_http_referer" value="<?php echo wp_specialchars($wp_http_referer); ?>" />
<input type="hidden" name="wp_http_referer" value="<?php echo clean_url($wp_http_referer); ?>" />
<?php endif; ?>
<p>
<input type="hidden" name="from" value="profile" />