Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
Merge remote branch 'tim'
Browse files Browse the repository at this point in the history
  • Loading branch information
James Conroy-Finn committed Nov 5, 2009
2 parents 64d1aa9 + 8005e3a commit 8ce1189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Support/app/views/commit/_commit_result.html.erb
Expand Up @@ -10,7 +10,7 @@
</ul>

<h2>Using Message:</h2>
<pre><%= htmlize(message) %></pre>
<pre style="white-space: pre-wrap;"><%= htmlize_attr(message) %></pre>

<% if result[:rev] %>
<h2>Diff of committed changes:</h2>
Expand Down
2 changes: 1 addition & 1 deletion Support/tmvc/lib/format_helpers/tag_helper.rb
Expand Up @@ -54,7 +54,7 @@ def tag_options(options, escape = true)
end

def htmlize_attr(str)
str.to_s.gsub(/"/, "&quot;").gsub("<", "&lt;").gsub(">", "&gt;")
str.to_s.gsub(/&/, "&amp;").gsub(/"/, "&quot;").gsub("<", "&lt;").gsub(">", "&gt;")
end

alias :escape_once :htmlize_attr
Expand Down

0 comments on commit 8ce1189

Please sign in to comment.