Escape user names.
diff --git a/commits/capture/GitLogCapture.class.inc b/commits/capture/GitLogCapture.class.inc
index 6b548dd..8f91038 100644
--- a/commits/capture/GitLogCapture.class.inc
+++ b/commits/capture/GitLogCapture.class.inc
@@ -68,14 +68,14 @@
$name = @$this->record['authorName'];
$email = @$this->record['author'];
- $authors[$name] = $email;
+ $authors[addSlashes($name)] = $email;
if (preg_match_all('/Also-By:(.+)<([^>]+)>/i', $this->record['comment'], $matches)) {
for($count=0; $count<count($matches[0]); $count++) {
$name = trim($matches[1][$count]);
$email = trim($matches[2][$count]);
- $authors[$name] = $email;
+ $authors[addSlashes($name)] = $email;
}
}