summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-20 10:46:06 +0100
committerAndrew Dolgov <[email protected]>2005-12-20 10:46:06 +0100
commitdd0e372803c27b133bc45a67be49dd54040f6c52 (patch)
treeac4728c0519d0c3cdf3a7c99893046d825a71d21 /backend.php
parent15da5cc18d8ccbca3f82d2120ace5ca8e0133019 (diff)
escape html in getFeedCounters() error=
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index ea5b6a0bb..78760e5e7 100644
--- a/backend.php
+++ b/backend.php
@@ -235,7 +235,7 @@
AND ttrss_user_entries.ref_id = ttrss_entries.id");
$count = db_fetch_result($result, 0, "count");
- $last_error = db_fetch_result($result, 0, "last_error");
+ $last_error = htmlspecialchars(db_fetch_result($result, 0, "last_error"));
print "<counter type=\"feed\" id=\"$id\" counter=\"$count\" error=\"$last_error\"/>";
}
@@ -264,7 +264,7 @@
$id = $line["id"];
$count = $line["count"];
- $last_error = $line["last_error"];
+ $last_error = htmlspecialchars($line["last_error"]);
$has_img = is_file(ICONS_DIR . "/$id.ico");