WordPress.org

Make WordPress Core

Ticket #4333: UserEdit_Fix_Trunk.patch

File UserEdit_Fix_Trunk.patch, 653 bytes (added by g30rg3x, 11 years ago)

User-Edit.php Fix for trunk

  • wp-admin/user-edit.php

     
    7676<form name="profile" id="your-profile" action="user-edit.php" method="post">
    7777<?php wp_nonce_field('update-user_' . $user_id) ?>
    7878<?php if ( $wp_http_referer ) : ?>
    79         <input type="hidden" name="wp_http_referer" value="<?php echo wp_specialchars($wp_http_referer); ?>" />
     79        <input type="hidden" name="wp_http_referer" value="<?php echo clean_url($wp_http_referer); ?>" />
    8080<?php endif; ?>
    8181<p>
    8282<input type="hidden" name="from" value="profile" />