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-includes/links.php

    r1355 r1435  
    177177        $the_link = '#';
    178178        if (($row->link_url != null) && ($row->link_url != '')) {
    179             $the_link = htmlspecialchars(stripslashes($row->link_url));
    180         }
    181         $rel = stripslashes($row->link_rel);
     179            $the_link = htmlspecialchars($row->link_url);
     180        }
     181        $rel = $row->link_rel;
    182182        if ($rel != '') {
    183183            $rel = " rel='$rel'";
    184184        }
    185         $desc = htmlspecialchars(stripslashes($row->link_description), ENT_QUOTES);
    186         $name = htmlspecialchars(stripslashes($row->link_name), ENT_QUOTES);
     185        $desc = htmlspecialchars($row->link_description, ENT_QUOTES);
     186        $name = htmlspecialchars($row->link_name, ENT_QUOTES);
    187187
    188188        $title = $desc;
     
    274274 ** $links = get_linkobjectsbyname('fred');
    275275 ** foreach ($links as $link) {
    276  **   echo '<li>'.stripslashes($link->link_name).'</li>';
     276 **   echo '<li>'.$link->link_name.'</li>';
    277277 ** }
    278278 **/
     
    351351    if ($results) {
    352352        foreach ($results as $result) {
    353             $result->link_url         = stripslashes($result->link_url);
    354             $result->link_name        = stripslashes($result->link_name);
    355             $result->link_description = stripslashes($result->link_description);
    356             $result->link_notes       = stripslashes($result->link_notes);
     353            $result->link_url         = $result->link_url;
     354            $result->link_name        = $result->link_name;
     355            $result->link_description = $result->link_description;
     356            $result->link_notes       = $result->link_notes;
    357357            $newresults[] = $result;
    358358        }
     
    465465        $cat_name = $wpdb->get_var("SELECT cat_name FROM $wpdb->linkcategories WHERE cat_id=$id");
    466466    }
    467     return stripslashes($cat_name);
     467    return $cat_name;
    468468}
    469469
     
    560560
    561561            // Display the category name
    562             echo '  <li id="'.sanitize_title($cat['cat_name']).'">' . stripslashes($cat['cat_name']) . "\n\t<ul>\n";
     562            echo '  <li id="'.sanitize_title($cat['cat_name']).'">' . $cat['cat_name'] . "\n\t<ul>\n";
    563563            // Call get_links() with all the appropriate params
    564564            get_links($cat['link_category'],
Note: See TracChangeset for help on using the changeset viewer.