瀏覽代碼

Import feed->description en HTML

Ne pas protéger feed->description à l'import OPML, car c'est
potentiellement du HTML. Il faudrait faire du sanitize néanmoins.
Alexandre Alapetite 12 年之前
父節點
當前提交
f3a50c3ce8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/lib_rss.php

+ 1 - 1
lib/lib_rss.php

@@ -236,7 +236,7 @@ function getFeed ($outline, $cat_id) {
 		$feed->_website(htmlspecialchars((string)$outline['htmlUrl'], ENT_QUOTES, 'UTF-8'));
 		$feed->_website(htmlspecialchars((string)$outline['htmlUrl'], ENT_QUOTES, 'UTF-8'));
 	}
 	}
 	if (isset($outline['description'])) {
 	if (isset($outline['description'])) {
-		$feed->_description(htmlspecialchars((string)$outline['description'], ENT_QUOTES, 'UTF-8'));
+		$feed->_description((string)$outline['description']);
 	}
 	}
 	return $feed;
 	return $feed;
 }
 }