Commit e70d7e66e36517514016b3a4b5c53f4febc65d28
- Date: Sat Jan 26 14:16:18 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: e70d7e66e36517514016b3a4b5c53f4febc65d28
- Tree SHA1: 0996270f43b2448dc6ad796aa8e60cdbc2aed547
boo, routing conditions/requirements ignores the caseinsensitive regexp flag
Commit diff
| |   |
| 17 | 17 | # Allow downloading Web Service WSDL as a file with an extension |
| 18 | 18 | # instead of a file named 'wsdl' |
| 19 | 19 | #map.connect ':controller/service.wsdl', :action => 'wsdl' |
| 20 | | VALID_SHA = /[a-z0-9~\{\}\^\.]+/i |
| 20 | VALID_SHA = /[a-zA-Z0-9~\{\}\^\.]+/ |
| 21 | 21 | map.root :controller => "site", :action => "index" |
| 22 | 22 | |
| 23 | 23 | map.resource :account, :member => {:password => :get, :update_password => :put} do |account| |
| toggle raw diff |
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -17,7 +17,7 @@ ActionController::Routing::Routes.draw do |map|
# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named 'wsdl'
#map.connect ':controller/service.wsdl', :action => 'wsdl'
- VALID_SHA = /[a-z0-9~\{\}\^\.]+/i
+ VALID_SHA = /[a-zA-Z0-9~\{\}\^\.]+/
map.root :controller => "site", :action => "index"
map.resource :account, :member => {:password => :get, :update_password => :put} do |account| |