diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-03-22 18:01:31 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-03-22 18:01:31 -0500 |
commit | f4a361a2a878086405240490567668dfac8d9bd6 (patch) | |
tree | b1ff2f8937fa2614d26e34ec2e70eb43baede75b /app/models/commit.rb | |
parent | 37093af6d6d5371a2930ea8aa6938d93e6c27949 (diff) | |
download | gitlab-ce-f4a361a2a878086405240490567668dfac8d9bd6.tar.gz |
Sanitize commit title when creating revert commit.issue_14453
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index ce0b85d50cf..d0dbe009d0d 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -230,7 +230,7 @@ class Commit end def revert_message - %Q{Revert "#{title}"\n\n#{revert_description}} + %Q{Revert "#{title.strip}"\n\n#{revert_description}} end def reverts_commit?(commit) |