Skip to content

Commit

Permalink
Merge pull request #10 from WalkerMills/uri_decode_server_tags
Browse files Browse the repository at this point in the history
Percent-decode server tags in URI's
  • Loading branch information
boydm authored Oct 1, 2018
2 parents 7a8215b + 2d4b766 commit ef7b5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_markdown/engine.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule PhoenixMarkdown.Engine do
smart_tag = ~r/<%.*?%>/
markdown = Regex.replace(smart_tag, markdown, &HtmlEntities.decode/1)

uri_smart_tag = ~r/%3C%25+.*?%25%3E/
uri_smart_tag = ~r/%3C(%25)+.*?%25%3E/
Regex.replace(uri_smart_tag, markdown, &URI.decode/1)
end

Expand Down

0 comments on commit ef7b5f7

Please sign in to comment.