Changeset 2699 for trunk/wp-admin/import-rss.php
- Timestamp:
- 07/05/2005 08:47:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import-rss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import-rss.php
r2687 r2699 88 88 89 89 preg_match('|<title>(.*?)</title>|is', $post, $title); 90 $title = addslashes( trim($title[1]) );90 $title = $wpdb->escape( trim($title[1]) ); 91 91 $post_name = sanitize_title($title); 92 92 … … 113 113 114 114 preg_match('|<guid.+?>(.*?)</guid>|is', $post, $guid); 115 if ($guid) $guid = addslashes( trim($guid[1]) );115 if ($guid) $guid = $wpdb->escape( trim($guid[1]) ); 116 116 else $guid = ''; 117 117 118 118 preg_match('|<content:encoded>(.*?)</content:encoded>|is', $post, $content); 119 $content = str_replace( array('<![CDATA[', ']]>'), '', addslashes( trim($content[1]) ) );119 $content = str_replace( array('<![CDATA[', ']]>'), '', $wpdb->escape( trim($content[1]) ) ); 120 120 121 121 if (!$content) : // This is for feeds that put content in description
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)