Make WordPress Core

Changeset 1306


Ignore:
Timestamp:
05/18/2004 03:24:23 PM (20 years ago)
Author:
michelvaldrighi
Message:

switching to htmlspecialchars fixes category description problem with double-bytes encodings ( http://wordpress.org/support/6/5555 )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r1298 r1306  
    108108
    109109        <p><?php _e('Description:') ?><br />
    110         <textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo htmlentities($category->category_description); ?></textarea></p>
     110                                             <textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo htmlspecialchars($category->category_description, ENT_NOQUOTES); ?></textarea></p>
    111111        <p class="submit"><input type="submit" name="submit" value="<?php _e('Edit category &raquo;') ?>" /></p>
    112112    </form>
Note: See TracChangeset for help on using the changeset viewer.