Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed Rack::Rewrite map typo

  • Loading branch information...
commit 212a29dea87fc42aec73f4d513409b89a8ae6f74 1 parent eb55def
Aleksey V. Zapparov authored August 10, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  import.rb
2  import.rb
@@ -44,7 +44,7 @@
44 44
 
45 45
   new_url = "/#{time.strftime("%Y/%m/%d")}#{'/' + slug if slug}"
46 46
   nginx_rewrite.puts "rewrite ^/(?p=|archives/)#{post_id}$ #{new_url} permanent;\n"
47  
-  rack_rewrite.puts "r301 %r{/^(?:\\?p=|archives/)$#{post_id}}, '#{new_url}'\n"
  47
+  rack_rewrite.puts "r301 %r{/^(?:\\?p=|archives/)#{post_id}$}, '#{new_url}'\n"
48 48
   
49 49
   begin 
50 50
     newpost = File.open(path,'w')

0 notes on commit 212a29d

Please sign in to comment.
Something went wrong with that request. Please try again.