Permalink
Browse files

Undid somthing a bit dodgy

  • Loading branch information...
1 parent 40e003f commit bd9667e44a4b2035bc19e24e5aef4cfe1a3d667d @xanmanning xanmanning committed Aug 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 git.php
View
@@ -399,7 +399,7 @@ function html_blob($proj, $blob) {
//echo "nonhighlight!";
$cmd = "GIT_DIR=" . escapeshellarg($repopath . $CONFIG['repo_suffix']) . " git cat-file blob " . escapeshellarg($blob) . " 2>&1";
exec($cmd, &$out);
- $out = "<pre>" . implode("\n", $out) . "</pre>";
+ $out = "<pre>" . htmlspecialchars(implode("\n", $out)) . "</pre>";
echo $out;
} elseif($ext == "download") {
//echo "download";
@@ -552,7 +552,7 @@ function html_shortlog($proj, $lines) {
$date = date($CONFIG['git_date_format'], (int)$c['date']);
$cid = $order[$i];
$pid = $c['parent'];
- $mess = short_desc(htmlspecialchars($c['message']), 40);
+ $mess = short_desc($c['message'], 40);
$auth = short_desc($c['author'], 25);
$tid = $c['tree'];
// different ways of displaying diff

0 comments on commit bd9667e

Please sign in to comment.