use clean_url(). Nice catch, g30rg3x. see #4333 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4efb612c1a
commit
007e5937cf
|
@ -76,7 +76,7 @@ include ('admin-header.php');
|
||||||
<form name="profile" id="your-profile" action="user-edit.php" method="post">
|
<form name="profile" id="your-profile" action="user-edit.php" method="post">
|
||||||
<?php wp_nonce_field('update-user_' . $user_id) ?>
|
<?php wp_nonce_field('update-user_' . $user_id) ?>
|
||||||
<?php if ( $wp_http_referer ) : ?>
|
<?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; ?>
|
<?php endif; ?>
|
||||||
<p>
|
<p>
|
||||||
<input type="hidden" name="from" value="profile" />
|
<input type="hidden" name="from" value="profile" />
|
||||||
|
|
Loading…
Reference in New Issue