Ticket #624: wp-links-opml.patch
| File wp-links-opml.patch, 1.0 KB (added by anonymousbugger, 8 years ago) |
|---|
-
wp-links-opml.php
old new 4 4 header('Content-type: text/xml', true); 5 5 require('wp-blog-header.php'); 6 6 7 $needesc = array("&", "<", ">", "\'", "\""); 8 $theesc = array("&", "<", ">", "'", """); 9 7 10 $link_cat = $_GET['link_cat']; 8 11 if ((empty($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) { 9 12 $sql_cat = ''; … … 49 52 $prev_cat_id = $result->link_category; 50 53 } // end if new category 51 54 ?> 52 <outline title="<?php echo(htmlspecialchars(stripslashes($result->link_name))) ?>" type="link" xmlUrl="<?php echo $result->link_rss; ?>" htmlUrl="<?php echo ($result->link_url) ?>"/>55 <outline title="<?php echo(htmlspecialchars(stripslashes($result->link_name))) ?>" type="link" xmlUrl="<?php echo $result->link_rss; ?>" htmlUrl="<?php echo str_replace($needesc,$theesc,$result->link_url) ?>"/> 53 56 <?php 54 57 } // end foreach 55 58 } // end if
