aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorfrancis <francis>2009-04-08 05:34:51 +0000
committerfrancis <francis>2009-04-08 05:34:51 +0000
commit2424bdf7da5346a6bf28dbaf9ff4d9bfd70b070c (patch)
tree80e1bc7adb4bf633ecd093357531f36fc199ba88 /app/views
parent14b2c6e814484a76e52cc8108fa8bdf8081606cc (diff)
Remove some uses of gsub!, which might be clobbering other versions of strings
which are really members of some other class
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin_request/show_raw_email.rhtml2
-rw-r--r--app/views/track_mailer/event_digest.rhtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin_request/show_raw_email.rhtml b/app/views/admin_request/show_raw_email.rhtml
index 011341c99..fa2a4f9e6 100644
--- a/app/views/admin_request/show_raw_email.rhtml
+++ b/app/views/admin_request/show_raw_email.rhtml
@@ -22,5 +22,5 @@
<%= link_to "Download", "../download_raw_email/" + @raw_email.id.to_s %>
-<pre><%=h(@raw_email.data).gsub!(/\n/, '<br>') %></pre>
+<pre><%=h(@raw_email.data).gsub(/\n/, '<br>') %></pre>
diff --git a/app/views/track_mailer/event_digest.rhtml b/app/views/track_mailer/event_digest.rhtml
index 4f112f257..214b47aca 100644
--- a/app/views/track_mailer/event_digest.rhtml
+++ b/app/views/track_mailer/event_digest.rhtml
@@ -44,7 +44,7 @@
else
extract = highlight_and_excerpt(info_request.initial_request_text, @highlight_words, 150, false)
end
- extract.gsub!(/\s+/, ' ')
+ extract = extract.gsub(/\s+/, ' ')
main_text += MySociety::Format.wrap_email_body('"' + extract + '"').gsub(/\n+$/, "") + "\n"
# Link to the request/response