Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mislav/will_paginate
base: master
...
head fork: twoism/will_paginate
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/will_paginate/view_helpers.rb
View
6 lib/will_paginate/view_helpers.rb
@@ -343,9 +343,9 @@ def url_for(page)
else
@url_string = url
@url_params[param_name] = 3
- @template.url_for(@url_params).split(//).each_with_index do |char, i|
- if char == '3' and url[i, 1] == '2'
- @url_string[i] = "\0"
+ @template.url_for(@url_params).mb_chars.split(//).each_with_index do |char, i|
+ if char.to_s == '3' and url.mb_chars[i, 1].to_s == '2'
+ @url_string.mb_chars[i] = "\0"
break
end
end

No commit comments for this range

Something went wrong with that request. Please try again.