diff --git a/SourceGitweb/SourceGitweb.php b/SourceGitweb/SourceGitweb.php index 0102797..bf4ec9f 100644 --- a/SourceGitweb/SourceGitweb.php +++ b/SourceGitweb/SourceGitweb.php @@ -288,6 +288,9 @@ preg_match( '#
(.*)
#', $t_gitweb_data, $t_matches ); $t_commit['message'] = trim( str_replace( '
', PHP_EOL, $t_matches[1] ) ); + # Strip ref links and signoff spans from commit message + $t_commit['message'] = preg_replace( '/]*>([^<]*)/', '$1', $t_commit['message'] ); + $t_commit['message'] = preg_replace( '/]*>([^<]*)/', '$1', $t_commit['message'] ); # Parse for changed file data $t_commit['files'] = array();