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:
parent
442ef7253a
commit
c342666830
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user