]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: escape dumped content while debugging
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 22 Jan 2016 23:17:24 +0000 (02:17 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 22 Jan 2016 23:17:24 +0000 (02:17 +0300)
include/rssfuncs.php

index fcecbf67069cf001e41da834513bab359734b2e0..95ac4076f52af6461d18873cf4d84d8e56d2c09d 100755 (executable)
 
                                if ($_REQUEST["xdebug"] == 2) {
                                        print "content: ";
-                                       print $entry_content;
+                                       print htmlspecialchars($entry_content);
                                        print "\n";
                                }
 
                                        $entry_plugin_data .= mb_strtolower(get_class($plugin)) . ",";
                                }
 
+                               if ($_REQUEST["xdebug"] == 2) {
+                                       print "processed content: ";
+                                       print htmlspecialchars($article["content"]);
+                                       print "\n";
+                               }
+
                                $entry_plugin_data = db_escape_string($entry_plugin_data);
 
                                _debug("plugin data: $entry_plugin_data", $debug_enabled);