Commit 345c4d2a authored by Robert Speicher's avatar Robert Speicher

Update gfm so escaped text is still parsed for references

parent ba72c6f6
...@@ -48,8 +48,10 @@ module Gitlab ...@@ -48,8 +48,10 @@ module Gitlab
def gfm(text, html_options = {}) def gfm(text, html_options = {})
return text if text.nil? return text if text.nil?
# prevents the string supplied through the _text_ argument to be altered # Duplicate the string so we don't alter the original, then call to_str
text = text.dup # to cast it back to a String instead of a SafeBuffer. This is required
# for gsub calls to work as we need them to.
text = text.dup.to_str
@html_options = html_options @html_options = html_options
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment