HTML escape debug output
HTML escape debug output

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -192,7 +192,7 @@
 if (GitPHP_Log::GetInstance()->GetEnabled()) {
 	$entries = GitPHP_Log::GetInstance()->GetEntries();
 	foreach ($entries as $logline) {
-		echo "<br />\n" . $logline;
+		echo "<br />\n" . htmlspecialchars($logline, ENT_QUOTES, 'UTF-8', true);
 	}
 	unset($logline);
 	unset($entries);

comments