Skip to content

Commit

Permalink
Merge pull request #2 from Fullscript/fix-deprecated-uri-encode
Browse files Browse the repository at this point in the history
Replace deprecated URI.encode with URI.encode_www_form_component
  • Loading branch information
jscharf authored Nov 16, 2022
2 parents c57544d + 5a97f6a commit a2ae131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resque_cleaner/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def build_urls
f: @from,
t: @to,
regex: @regex
}.map {|key,value| "#{key}=#{URI.encode(value.to_s)}"}.join("&")
}.map {|key,value| "#{key}=#{URI.encode_www_form_component(value.to_s)}"}.join("&")

@list_url = "cleaner_list?#{params}"
@dump_url = "cleaner_dump?#{params}"
Expand Down
2 changes: 1 addition & 1 deletion lib/resque_cleaner/server/views/_stats.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</tr>
<% @stats[type.to_sym].each do |field,count| %>
<tr>
<% filter = "#{q}=#{URI.encode(field)}" %>
<% filter = "#{q}=#{URI.encode_www_form_component(field)}" %>
<td><%= field %></td>
<td class="number">
<a href="cleaner_list?<%=filter%>"><%= count[:total] %></a>
Expand Down

0 comments on commit a2ae131

Please sign in to comment.