Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (19 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r4655 r4656  
    88require_once('admin-header.php');
    99if (empty($_GET['mode'])) $mode = 'view';
    10 else $mode = wp_specialchars($_GET['mode'], 1);
     10else $mode = attribute_escape($_GET['mode']);
    1111?>
    1212
     
    4343  <fieldset>
    4444  <legend><?php _e('Show Comments That Contain...') ?></legend>
    45   <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo wp_specialchars($_GET['s'], 1); ?>" size="17" />
     45  <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" />
    4646  <input type="submit" name="submit" value="<?php _e('Search') ?>"  /> 
    4747  <input type="hidden" name="mode" value="<?php echo $mode; ?>" />
Note: See TracChangeset for help on using the changeset viewer.