Make WordPress Core


Ignore:
Timestamp:
12/12/2004 08:41:19 PM (21 years ago)
Author:
saxmatt
Message:

Axing htmlspecialchars because it double-encodes-encodes. Better error handling around queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-links-opml.php

    r1575 r1940  
    4444             } // end if not first time
    4545?>
    46         <outline type="category" title="<?php echo(htmlspecialchars(stripslashes($result->cat_name))) ?>">
     46        <outline type="category" title="<?php echo wp_specialchars($result->cat_name); ?>">
    4747<?php
    4848             $prev_cat_id = $result->link_category;
    4949        } // end if new category
    5050?>
    51             <outline title="<?php echo(htmlspecialchars(stripslashes($result->link_name))) ?>" type="link" xmlUrl="<?php echo $result->link_rss; ?>" htmlUrl="<?php echo($result->link_url) ?>"/>
     51            <outline title="<?php echo wp_specialchars($result->link_name); ?>" type="link" xmlUrl="<?php echo $result->link_rss; ?>" htmlUrl="<?php echo($result->link_url) ?>"/>
    5252<?php
    5353        } // end foreach
Note: See TracChangeset for help on using the changeset viewer.