bug 1190: changed length parameter to adjust the text for <!CDATA[ ]]> for the...
authorINOPIAE <inopiae@cacert.org>
Sun, 14 Jul 2013 11:15:00 +0000 (13:15 +0200)
committerINOPIAE <inopiae@cacert.org>
Sun, 14 Jul 2013 11:15:00 +0000 (13:15 +0200)
pages/index/0.php

index e7356c7..7b9322f 100644 (file)
@@ -78,7 +78,7 @@
                        if(substr($line, 0, 7) == "<title>")
                                echo "<h3>".str_replace("&amp;#", "&#", recode_string("UTF8..html", str_replace("&amp;", "", trim(substr($line, 7, -8)))))."</h3>\n";
                        if(substr($line, 0, 13) == "<description>")
-                               echo "<p>".str_replace("&amp;#", "&#", recode_string("UTF8..html", str_replace("&amp;", "", trim(substr($line, 13, -14)))))."</p>\n";
+                               echo "<p>".str_replace("&amp;#", "&#", recode_string("UTF8..html", str_replace("&amp;", "", trim(substr($line, 22, -17)))))."</p>\n";
                        if(substr($line, 0, 6) == "<link>")
                                echo "<p>[ <a href='".trim(substr($line, 6, -7))."'>"._("Full Story")."</a> ]</p>\n";
                }