Make WordPress Core

Changeset 1436


Ignore:
Timestamp:
06/19/2004 02:13:48 AM (22 years ago)
Author:
jverber
Message:

Fix for bug #0000092: Special chars were not encoded correctly.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r1435 r1436  
    122122
    123123<div class="wrap">
    124   <h2>Edit &#8220;<?php echo $row->cat_name?>&#8221; Category </h2>
     124  <h2>Edit &#8220;<?php echo htmlspecialchars($row->cat_name)?>&#8221; Category </h2>
    125125
    126126  <form name="editcat" method="post">
     
    132132<tr>
    133133    <th width="33%" scope="row"><?php _e('Name:') ?></th>
    134     <td width="67%"><input name="cat_name" type="text" value="<?php echo $row->cat_name?>" size="30" /></td>
     134    <td width="67%"><input name="cat_name" type="text" value="<?php echo htmlspecialchars($row->cat_name)?>" size="30" /></td>
    135135</tr>
    136136<tr>
     
    333333?>
    334334              <tr valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;">
    335                 <td><?php echo $row->cat_name?></td>
     335                <td><?php echo htmlspecialchars($row->cat_name)?></td>
    336336                <td ><?php echo $row->cat_id?></td>
    337337                <td><?php echo $row->auto_toggle?></td>
  • trunk/wp-admin/link-manager.php

    r1435 r1436  
    313313
    314314    if ($row) {
    315       $link_url = $row->link_url;
    316       $link_name = $row->link_name;
     315      $link_url = htmlspecialchars($row->link_url);
     316      $link_name = htmlspecialchars($row->link_name);
    317317      $link_image = $row->link_image;
    318318      $link_target = $row->link_target;
    319319      $link_category = $row->link_category;
    320       $link_description = $row->link_description;
     320      $link_description = htmlspecialchars($row->link_description);
    321321      $link_visible = $row->link_visible;
    322322      $link_rating = $row->link_rating;
    323323      $link_rel = $row->link_rel;
    324       $link_notes = $row->link_notes;
    325       $link_rss_uri = $row->link_rss;
     324      $link_notes = htmlspecialchars($row->link_notes);
     325      $link_rss_uri = htmlspecialchars($row->link_rss);
    326326    }
    327327
     
    691691    if ($links) {
    692692        foreach ($links as $link) {
     693            $link->link_name = htmlspecialchars($link->link_name);
     694            $link->link_category = htmlspecialchars($link->link_category);
     695            $link->link_description = htmlspecialchars($link->link_description);
     696            $link->link_url = htmlspecialchars($link->link_url);
    693697            $short_url = str_replace('http://', '', $link->link_url);
    694698            $short_url = str_replace('www.', '', $short_url);
Note: See TracChangeset for help on using the changeset viewer.