]> git.wh0rd.org - tt-rss.git/commitdiff
escape html in getFeedCounters() error=
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 Dec 2005 09:46:06 +0000 (10:46 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 Dec 2005 09:46:06 +0000 (10:46 +0100)
backend.php

index ea5b6a0bb8f97fc191944281179bcf9090e6e412..78760e5e708881289701e0d2ab0129f64a8f78c0 100644 (file)
                        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\"/>";           
        }
                
                        $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");