aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-07-28 12:29:47 +0100
committerRobin Houston <robin@lenny.robin>2011-07-28 12:29:47 +0100
commit512ee63b9eac634d42f2bf87cabd3fa4a0b7c554 (patch)
tree83c955b826ed652c4502c6dc4e68840abc8449d3
parent5c6dfebda5d6f6ec2b3f25905b95e3a9e4247fe7 (diff)
Doing two placeholder-substitution operations in succession is a recipe for disaster.
(In this case, a request whose title contains a % sign caused it to break.)
-rw-r--r--app/views/request/_followup.rhtml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/request/_followup.rhtml b/app/views/request/_followup.rhtml
index 8c279d234..78de7decd 100644
--- a/app/views/request/_followup.rhtml
+++ b/app/views/request/_followup.rhtml
@@ -25,9 +25,7 @@
<% end %>
<p>
- <%= _('Please <strong>only</strong> write messages directly relating to your
- request {{request_link}}. If you would like to ask for information
- that was not in your original request, then <a href="%s">file a new request</a>.',:request_link=>request_link(@info_request)) % [new_request_to_body_url(:url_name => @info_request.public_body.url_name)] %>
+ <%= _('Please <strong>only</strong> write messages directly relating to your request {{request_link}}. If you would like to ask for information that was not in your original request, then <a href="{{new_request_link}}">file a new request</a>.', :request_link=>request_link(@info_request), :new_request_link => new_request_to_body_url(:url_name => @info_request.public_body.url_name)) %>
</p>
<% status = @info_request.calculate_status %>