Commit 4a9e233d authored by Dries's avatar Dries
Browse files

- News items are now filtered using node_filter() instead of filter(). This...

- News items are now filtered using node_filter() instead of filter().  This stops the other filters (such as textile) from kicking in and messing with the data.  Reported by Gary.
parent 50b5fa04
......@@ -269,7 +269,7 @@ function import_refresh($feed) {
*/
foreach ($channel as $key => $value) {
$channel[$key] = filter(strtr(trim($value), $tt));
$channel[$key] = node_filter(strtr(trim($value), $tt));
}
db_query("UPDATE feed SET timestamp = %d, link = '%s', description = '%s' WHERE fid = %d", time(), $channel["LINK"], $channel["DESCRIPTION"], $feed["fid"]);
......@@ -287,7 +287,7 @@ function import_refresh($feed) {
// Prepare the item:
foreach ($item as $key => $value) {
$item[$key] = filter(strtr(trim($value), $tt));
$item[$key] = node_filter(strtr(trim($value), $tt));
}
if ($item["TITLE"]) {
......
......@@ -269,7 +269,7 @@ function import_refresh($feed) {
*/
foreach ($channel as $key => $value) {
$channel[$key] = filter(strtr(trim($value), $tt));
$channel[$key] = node_filter(strtr(trim($value), $tt));
}
db_query("UPDATE feed SET timestamp = %d, link = '%s', description = '%s' WHERE fid = %d", time(), $channel["LINK"], $channel["DESCRIPTION"], $feed["fid"]);
......@@ -287,7 +287,7 @@ function import_refresh($feed) {
// Prepare the item:
foreach ($item as $key => $value) {
$item[$key] = filter(strtr(trim($value), $tt));
$item[$key] = node_filter(strtr(trim($value), $tt));
}
if ($item["TITLE"]) {
......
......@@ -269,7 +269,7 @@ function import_refresh($feed) {
*/
foreach ($channel as $key => $value) {
$channel[$key] = filter(strtr(trim($value), $tt));
$channel[$key] = node_filter(strtr(trim($value), $tt));
}
db_query("UPDATE feed SET timestamp = %d, link = '%s', description = '%s' WHERE fid = %d", time(), $channel["LINK"], $channel["DESCRIPTION"], $feed["fid"]);
......@@ -287,7 +287,7 @@ function import_refresh($feed) {
// Prepare the item:
foreach ($item as $key => $value) {
$item[$key] = filter(strtr(trim($value), $tt));
$item[$key] = node_filter(strtr(trim($value), $tt));
}
if ($item["TITLE"]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment