Make WordPress Core


Ignore:
Timestamp:
06/18/2004 12:22:09 AM (22 years ago)
Author:
rboren
Message:

stripslashes() elimination. Remove extra slashes during upgrade. Bugs 0000059 and 0000018

File:
1 edited

Legend:

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

    r1429 r1435  
    8888    $cat_id = $_GET['cat_id'];
    8989    $cat_name=get_linkcatname($cat_id);
    90     $cat_name=addslashes($cat_name);
    9190
    9291    if ($cat_id=="1")
     
    133132<tr>
    134133    <th width="33%" scope="row"><?php _e('Name:') ?></th>
    135     <td width="67%"><input name="cat_name" type="text" value="<?php echo stripslashes($row->cat_name)?>" size="30" /></td>
     134    <td width="67%"><input name="cat_name" type="text" value="<?php echo $row->cat_name?>" size="30" /></td>
    136135</tr>
    137136<tr>
     
    191190<tr>
    192191    <th width="33%" scope="row"><?php _e('Before Link:') ?></th>
    193     <td width="67%"><input type="text" name="text_before_link" size="45" value="<?php echo htmlspecialchars(stripslashes($row->text_before_link))?>" /></td>
     192    <td width="67%"><input type="text" name="text_before_link" size="45" value="<?php echo htmlspecialchars($row->text_before_link)?>" /></td>
    194193</tr>
    195194<tr>
    196195<th scope="row"><?php _e('Between Link and Description:') ?></th>
    197 <td><input type="text" name="text_after_link" size="45" value="<?php echo htmlspecialchars(stripslashes($row->text_after_link))?>" /></td>
     196<td><input type="text" name="text_after_link" size="45" value="<?php echo htmlspecialchars($row->text_after_link)?>" /></td>
    198197</tr>
    199198<tr>
    200199<th scope="row"><?php _e('After Link:') ?></th>
    201 <td><input type="text" name="text_after_all" size="45" value="<?php echo htmlspecialchars(stripslashes($row->text_after_all))?>"/></td>
     200<td><input type="text" name="text_after_all" size="45" value="<?php echo htmlspecialchars($row->text_after_all)?>"/></td>
    202201</tr>
    203202</table>
     
    224223    $cat_id=$_POST["cat_id"];
    225224
    226     $cat_name=addslashes(stripslashes($_POST["cat_name"]));
     225    $cat_name= $_POST["cat_name"];
    227226    $auto_toggle = $_POST["auto_toggle"];
    228227    if ($auto_toggle != 'Y') {
     
    334333?>
    335334              <tr valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;">
    336                 <td><?php echo stripslashes($row->cat_name)?></td>
     335                <td><?php echo $row->cat_name?></td>
    337336                <td ><?php echo $row->cat_id?></td>
    338337                <td><?php echo $row->auto_toggle?></td>
Note: See TracChangeset for help on using the changeset viewer.