Skip to content

Commit

Permalink
Convert uri to string before matching it against the regular expressi…
Browse files Browse the repository at this point in the history
…on when checking for a Windows path
  • Loading branch information
enricob committed Aug 11, 2009
1 parent bd03347 commit e0947a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openwfe/expool/def_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def initialize (service_name, application_context)
#
def read_uri (uri)

return File.read(uri) if uri.match(/^[a-zA-Z]:[\/\\]/)
return File.read(uri) if uri.to_s.match(/^[a-zA-Z]:[\/\\]/)
# seems like we're on windows, well... A:/ ?

u = URI.parse(uri.to_s)
Expand Down

0 comments on commit e0947a2

Please sign in to comment.