<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -332,21 +332,21 @@ module WillPaginate
         return url if page_one
         
         if complex
-          @url_string = url.sub(%r!((?:\?|&amp;amp;)#{CGI.escape param_name}=)#{page}!, '\1@')
+          @url_string = url.sub(%r!((?:\?|&amp;amp;)#{CGI.escape param_name}=)#{page}!, &quot;\\1\0&quot;)
           return url
         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] = '@'
+              @url_string[i] = &quot;\0&quot;
               break
             end
           end
         end
       end
       # finally!
-      @url_string.sub '@', page.to_s
+      @url_string.sub &quot;\0&quot;, page.to_s
     end
 
   private</diff>
      <filename>lib/will_paginate/view_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -277,6 +277,14 @@ class ViewTest &lt; WillPaginate::ViewTestCase
       end
     end    
   end
+
+  def test_will_paginate_with_atmark_url
+    @request.symbolized_path_parameters[:action] = &quot;@tag&quot;
+    renderer = WillPaginate::LinkRenderer.new
+    
+    paginate({ :page =&gt; 1 }, :renderer=&gt;renderer)
+    assert_links_match %r[/foo/@tag\?page=\d]
+  end
   
   def test_complex_custom_page_param
     @request.params :developers =&gt; { :page =&gt; 2 }</diff>
      <filename>test/view_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b63e438094990aa1e6660614235009876c037801</id>
    </parent>
  </parents>
  <author>
    <name>KURODA Hiraku</name>
    <email>hiraku.github@hinet.mydns.jp</email>
  </author>
  <url>http://github.com/mislav/will_paginate/commit/1142ac97a05be124895c93eb43b2f8932b722770</url>
  <id>1142ac97a05be124895c93eb43b2f8932b722770</id>
  <committed-date>2009-05-20T04:12:42-07:00</committed-date>
  <authored-date>2009-05-11T00:58:29-07:00</authored-date>
  <message>fix generation of page URLs that contain the &quot;@&quot; character

before, &quot;/blogs/@Andrex/page/2&quot; would be generated like &quot;/blogs/2Andrex/page/@&quot;
[#262 state:resolved]</message>
  <tree>104fa48a4256e2b4bf810d949a7ecb113eef7429</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
