[wp-cvs] wordpress/wp-admin link-categories.php, 1.12, 1.13 link-manager.php, 1.29, 1.30

Jason Verber jverber at users.sourceforge.net
Sat Jun 19 02:13:50 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26972/wp-admin

Modified Files:
	link-categories.php link-manager.php 
Log Message:
Fix for bug #0000092: Special chars were not encoded correctly.

Index: link-manager.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/link-manager.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** link-manager.php	18 Jun 2004 00:22:08 -0000	1.29
--- link-manager.php	19 Jun 2004 02:13:48 -0000	1.30
***************
*** 313,327 ****
  
      if ($row) {
!       $link_url = $row->link_url;
!       $link_name = $row->link_name;
        $link_image = $row->link_image;
        $link_target = $row->link_target;
        $link_category = $row->link_category;
!       $link_description = $row->link_description;
        $link_visible = $row->link_visible;
        $link_rating = $row->link_rating;
        $link_rel = $row->link_rel;
!       $link_notes = $row->link_notes;
! 	  $link_rss_uri = $row->link_rss;
      }
  
--- 313,327 ----
  
      if ($row) {
!       $link_url = htmlspecialchars($row->link_url);
!       $link_name = htmlspecialchars($row->link_name);
        $link_image = $row->link_image;
        $link_target = $row->link_target;
        $link_category = $row->link_category;
!       $link_description = htmlspecialchars($row->link_description);
        $link_visible = $row->link_visible;
        $link_rating = $row->link_rating;
        $link_rel = $row->link_rel;
!       $link_notes = htmlspecialchars($row->link_notes);
! 	  $link_rss_uri = htmlspecialchars($row->link_rss);
      }
  
***************
*** 691,694 ****
--- 691,698 ----
      if ($links) {
          foreach ($links as $link) {
+       	    $link->link_name = htmlspecialchars($link->link_name);
+       	    $link->link_category = htmlspecialchars($link->link_category);
+       	    $link->link_description = htmlspecialchars($link->link_description);
+             $link->link_url = htmlspecialchars($link->link_url);
              $short_url = str_replace('http://', '', $link->link_url);
              $short_url = str_replace('www.', '', $short_url);

Index: link-categories.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/link-categories.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** link-categories.php	18 Jun 2004 00:22:08 -0000	1.12
--- link-categories.php	19 Jun 2004 02:13:47 -0000	1.13
***************
*** 122,126 ****
  
  <div class="wrap">
!   <h2>Edit &#8220;<?php echo $row->cat_name?>&#8221; Category </h2>
  
    <form name="editcat" method="post">
--- 122,126 ----
  
  <div class="wrap">
!   <h2>Edit &#8220;<?php echo htmlspecialchars($row->cat_name)?>&#8221; Category </h2>
  
    <form name="editcat" method="post">
***************
*** 132,136 ****
  <tr>
  	<th width="33%" scope="row"><?php _e('Name:') ?></th>
! 	<td width="67%"><input name="cat_name" type="text" value="<?php echo $row->cat_name?>" size="30" /></td>
  </tr>
  <tr>
--- 132,136 ----
  <tr>
  	<th width="33%" scope="row"><?php _e('Name:') ?></th>
! 	<td width="67%"><input name="cat_name" type="text" value="<?php echo htmlspecialchars($row->cat_name)?>" size="30" /></td>
  </tr>
  <tr>
***************
*** 333,337 ****
  ?>
                <tr valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;">
!                 <td><?php echo $row->cat_name?></td>
  				<td ><?php echo $row->cat_id?></td>
                  <td><?php echo $row->auto_toggle?></td>
--- 333,337 ----
  ?>
                <tr valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;">
!                 <td><?php echo htmlspecialchars($row->cat_name)?></td>
  				<td ><?php echo $row->cat_id?></td>
                  <td><?php echo $row->auto_toggle?></td>




More information about the cvs mailing list