summaryrefslogtreecommitdiff
path: root/pages/index/0.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index/0.php')
-rw-r--r--pages/index/0.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/index/0.php b/pages/index/0.php
index a44b0a8..79a677d 100644
--- a/pages/index/0.php
+++ b/pages/index/0.php
@@ -48,15 +48,15 @@
$query = "./link";
$nodeList = $xpath->query($query, $item);
- $link = $nodeList->item(0)->nodeValue;
+ $link = htmlspecialchars($nodeList->item(0)->nodeValue);
$query = "./description";
$nodeList = $xpath->query($query, $item);
$description = str_replace("&#", "&#", recode_string("UTF8..html" , $nodeList->item(0)->nodeValue));
- printf("<h3> %s </h3>\n", $title);
- printf("<p> %s </p>\n", $description);
- printf("<p>[<a href='%s'> %s </a> ] </p>\n\n", $link,_("Full Story"));
+ printf('<h3> %s </h3>\n', $title);
+ printf('<p> %s </p>\n', $description);
+ printf('<p>[<a href="%s"> %s </a> ] </p>\n\n', $link,_("Full Story"));
$title = '';
$description = '';