Commit a7324de1a5475f6ec56735523f19212b27469f7f
- Date: Wed Jan 23 00:08:18 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: a7324de1a5475f6ec56735523f19212b27469f7f
- Tree SHA1: afb94250e68214542b1fa7bf5d7d6d2ed9fdc31a
update valid_sha in routes
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]{40}|HEAD)/ |
| 20 | VALID_SHA = /[a-z0-9~\{\}\^\.]+/i |
| 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]{40}|HEAD)/
+ VALID_SHA = /[a-z0-9~\{\}\^\.]+/i
map.root :controller => "site", :action => "index"
map.resource :account, :member => {:password => :get, :update_password => :put} do |account| |