On 24/06/10 10:35 -0400, Chris Lalancette wrote: Very nice catch! ACK.
>Signed-off-by: Chris Lalancette <[email protected]> >--- > server/lib/sinatra/url_for.rb | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >diff --git a/server/lib/sinatra/url_for.rb b/server/lib/sinatra/url_for.rb >index faed5b1..2480b78 100644 >--- a/server/lib/sinatra/url_for.rb >+++ b/server/lib/sinatra/url_for.rb >@@ -1,3 +1,5 @@ >+require 'uri' >+ > module Sinatra > module UrlForHelper > # Construct a link to +url_fragment+, which should be given relative to >@@ -30,7 +32,8 @@ module Sinatra > else > raise TypeError, "Unknown url_for mode #{mode}" > end >- "#{base}#{url_fragment}" >+ url_escape = URI.escape(url_fragment) >+ "#{base}#{url_escape}" > end > > def root_url >-- >1.6.6.1 > >_______________________________________________ >deltacloud-devel mailing list >[email protected] >https://fedorahosted.org/mailman/listinfo/deltacloud-devel -- -------------------------------------------------------- Michal Fojtik, [email protected], +420 532 294 4307 Ruby / Ruby On Rails Developer Deltacloud API: http://deltacloud.org -------------------------------------------------------- _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
