diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-23 14:01:35 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-25 14:41:06 -0400 |
commit | c0a97d70efa7c0cc4720be49939ca8c50a702641 (patch) | |
tree | 09caf4a5b88768540c2abfffcf4d38f729252d05 /lib | |
parent | 2403a28b3f201702b252b88ed6020a0c3f8511bf (diff) | |
download | gitlab-ce-c0a97d70efa7c0cc4720be49939ca8c50a702641.tar.gz |
Don't allow nil references to get added to results
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown/reference_filter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/markdown/reference_filter.rb b/lib/gitlab/markdown/reference_filter.rb index efd7ea16fcc..2e8baea68d6 100644 --- a/lib/gitlab/markdown/reference_filter.rb +++ b/lib/gitlab/markdown/reference_filter.rb @@ -42,6 +42,8 @@ module Gitlab # type - Singular Symbol reference type (e.g., :issue, :user, etc.) # value - Object to add def push_result(type, value) + return if value.nil? + result[:references][type].push(value) end |