summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-23 17:51:09 +0100
committerAndrew Dolgov <[email protected]>2005-11-23 17:51:09 +0100
commitee2c30500355415e05fd90c3799ffcbafc5c1c86 (patch)
treeed306be5f98dd234bd892e9ce3ef24c0cf172e67
parent3b0feb9b7f962e5745d26f8e115fd897e77a54ac (diff)
fix broken tag detection due to $entry_content being escaped
-rw-r--r--backend.php1
-rw-r--r--functions.php9
2 files changed, 7 insertions, 3 deletions
diff --git a/backend.php b/backend.php
index ff3e26056..af49cf2a1 100644
--- a/backend.php
+++ b/backend.php
@@ -580,7 +580,6 @@
$limit = $_GET["limit"];
if (!$feed) {
- print "Error: no feed to display.";
return;
}
diff --git a/functions.php b/functions.php
index 7ca9bb81c..19d4176ec 100644
--- a/functions.php
+++ b/functions.php
@@ -266,6 +266,8 @@
if (!$entry_content) $entry_content = $item["content"];
if (!$entry_content) $entry_content = $item["description"];
+ $entry_content_unescaped = $entry_content;
+
// if (!$entry_content) continue;
// WTF
@@ -403,8 +405,11 @@
$entry_tags = null;
- preg_match_all("/<a.*?rel=.tag.*?>([^>]+)<\/a>/i", $entry_content,
- $entry_tags);
+ preg_match_all("/<a.*?rel=.tag.*?>([^>]+)<\/a>/i",
+ $entry_content_unescaped, $entry_tags);
+
+// print "<br>$entry_title : $entry_content_unescaped<br>";
+// print_r($entry_tags);
$entry_tags = $entry_tags[1];